[Eraser strings] Remove unused Supervised User infobar and corresponding strings
[chromium-blink-merge.git] / chrome / common / ref_counted_util.h
bloba59f3c5b72d9702b16992922fbdbfdcf04003db8
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_REF_COUNTED_UTIL_H__
6 #define CHROME_COMMON_REF_COUNTED_UTIL_H__
8 #include "base/memory/ref_counted.h"
9 #include <vector>
11 // RefCountedVector is just a vector wrapped up with
12 // RefCountedThreadSafe.
13 template<class T>
14 class RefCountedVector
15 : public base::RefCountedThreadSafe<RefCountedVector<T> > {
16 public:
17 RefCountedVector() {}
18 explicit RefCountedVector(const std::vector<T>& initializer)
19 : data(initializer) {}
21 std::vector<T> data;
23 private:
24 friend class base::RefCountedThreadSafe<RefCountedVector<T>>;
25 ~RefCountedVector() {}
27 DISALLOW_COPY_AND_ASSIGN(RefCountedVector<T>);
30 #endif // CHROME_COMMON_REF_COUNTED_UTIL_H__