blob: 1626bb57e70eb6823316eeaf33c97d2228131eba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_VALUES_UTIL_H_
#define BASE_VALUES_UTIL_H_
#pragma once
#include "base/values.h"
#include "base/ref_counted.h"
class RefCountedList : public base::RefCountedThreadSafe<RefCountedList> {
public:
// Takes ownership of |list|.
explicit RefCountedList(ListValue* list);
virtual ~RefCountedList();
virtual ListValue* Get();
private:
ListValue* list_;
DISALLOW_COPY_AND_ASSIGN(RefCountedList);
};
#endif // BASE_VALUES_UTIL_H_
|