summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler
diff options
context:
space:
mode:
authorjyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-17 02:24:02 +0000
committerjyasskin@chromium.org <jyasskin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-17 02:24:02 +0000
commit9edc18cdc8788bf1fa557bbb0445d1629a9f8d0a (patch)
treeb33d3aea0e6e76cb63b4c6de606c8c027b155784 /tools/json_schema_compiler
parentcbf5a220b567763603b50b094aec1d8ec1a9c775 (diff)
downloadchromium_src-9edc18cdc8788bf1fa557bbb0445d1629a9f8d0a.zip
chromium_src-9edc18cdc8788bf1fa557bbb0445d1629a9f8d0a.tar.gz
chromium_src-9edc18cdc8788bf1fa557bbb0445d1629a9f8d0a.tar.bz2
Create DeclarativeConditionSet, DeclarativeActionSet, and DeclarativeRule templates
so that code can be shared between declarativeWebRequest and future declarative APIs. TBR=ben Review URL: https://chromiumcodereview.appspot.com/11572061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r--tools/json_schema_compiler/any.cc4
-rw-r--r--tools/json_schema_compiler/any.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/any.cc b/tools/json_schema_compiler/any.cc
index b429567..cd4e5c3 100644
--- a/tools/json_schema_compiler/any.cc
+++ b/tools/json_schema_compiler/any.cc
@@ -12,6 +12,10 @@ namespace any {
Any::Any() {}
+Any::Any(scoped_ptr<base::Value> from_value)
+ : value_(from_value.Pass()) {
+}
+
Any::~Any() {}
void Any::Init(const base::Value& from_value) {
diff --git a/tools/json_schema_compiler/any.h b/tools/json_schema_compiler/any.h
index 9e44048..83b84d6 100644
--- a/tools/json_schema_compiler/any.h
+++ b/tools/json_schema_compiler/any.h
@@ -19,6 +19,7 @@ namespace any {
class Any {
public:
Any();
+ explicit Any(scoped_ptr<base::Value> from_value);
~Any();
// Initializes the Value in this Any. Fails if already initialized.