OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 TOOLS_JSON_SCHEMA_COMPILER_ANY_H__ | |
6 #define TOOLS_JSON_SCHEMA_COMPILER_ANY_H__ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 | |
12 namespace base { | |
13 class Value; | |
14 } | |
15 | |
16 namespace json_schema_compiler { | |
17 namespace any { | |
18 | |
19 class Any { | |
not at google - send to devlin
2012/02/28 22:41:17
document
calamity
2012/03/01 04:47:09
Done.
| |
20 public: | |
21 Any(); | |
22 ~Any(); | |
23 | |
24 // Copies a Value into this Any. | |
25 void CopyFrom(const base::Value& from_value); | |
26 | |
27 // Get the Value from this Any. | |
28 const base::Value& value() const; | |
29 | |
30 private: | |
31 scoped_ptr<base::Value> value_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(Any); | |
34 }; | |
35 | |
36 } // namespace any | |
37 } // namespace json_schema_compiler | |
38 | |
39 #endif // TOOLS_JSON_SCHEMA_COMPILER_ANY_H__ | |
OLD | NEW |