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

Unified 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: remove whitespace Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/any.h
diff --git a/tools/json_schema_compiler/any.h b/tools/json_schema_compiler/any.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd938ff88e97003ccbe8913ac93efb5c0ad58ff1
--- /dev/null
+++ b/tools/json_schema_compiler/any.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 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 TOOLS_JSON_SCHEMA_COMPILER_ANY_H__
+#define TOOLS_JSON_SCHEMA_COMPILER_ANY_H__
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace base {
+class Value;
+}
+
+namespace json_schema_compiler {
+namespace any {
+
+class Any {
not at google - send to devlin 2012/02/28 22:41:17 document
calamity 2012/03/01 04:47:09 Done.
+ public:
+ Any();
+ ~Any();
+
+ // Copies a Value into this Any.
+ void CopyFrom(const base::Value& from_value);
+
+ // Get the Value from this Any.
+ const base::Value& value() const;
+
+ private:
+ scoped_ptr<base::Value> value_;
+
+ DISALLOW_COPY_AND_ASSIGN(Any);
+};
+
+} // namespace any
+} // namespace json_schema_compiler
+
+#endif // TOOLS_JSON_SCHEMA_COMPILER_ANY_H__

Powered by Google App Engine
This is Rietveld 408576698