Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: tools/json_schema_compiler/any.h

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add any in arrays to util.h Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/api/webstorePrivate.json ('k') | tools/json_schema_compiler/any.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // Represents an "any" type in JSON schema as a wrapped Value.
20 class Any {
21 public:
22 Any();
23 ~Any();
24
25 // Initializes the Value in this Any. Fails if already initialized.
26 void Init(const base::Value& from_value);
27
28 // Get the Value from this Any.
29 const base::Value& value() const;
30
31 private:
32 scoped_ptr<base::Value> value_;
33
34 DISALLOW_COPY_AND_ASSIGN(Any);
35 };
36
37 } // namespace any
38 } // namespace json_schema_compiler
39
40 #endif // TOOLS_JSON_SCHEMA_COMPILER_ANY_H__
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/webstorePrivate.json ('k') | tools/json_schema_compiler/any.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698