| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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. | |
| 4 | |
| 5 #ifndef BASE_VALUES_UTIL_H_ | |
| 6 #define BASE_VALUES_UTIL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/values.h" | |
| 10 #include "base/ref_counted.h" | |
| 11 | |
| 12 class RefCountedList : public base::RefCountedThreadSafe<RefCountedList> { | |
| 13 public: | |
| 14 // Takes ownership of |list|. | |
| 15 explicit RefCountedList(ListValue* list); | |
| 16 virtual ~RefCountedList(); | |
| 17 | |
| 18 virtual ListValue* Get(); | |
| 19 | |
| 20 private: | |
| 21 ListValue* list_; | |
| 22 | |
| 23 DISALLOW_COPY_AND_ASSIGN(RefCountedList); | |
| 24 }; | |
| 25 | |
| 26 #endif // BASE_VALUES_UTIL_H_ | |
| OLD | NEW |