Index: tools/json_schema_compiler/util.h |
diff --git a/tools/json_schema_compiler/util.h b/tools/json_schema_compiler/util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..25f0d428967da414bffb4dffeb3f35edeadf62fa |
--- /dev/null |
+++ b/tools/json_schema_compiler/util.h |
@@ -0,0 +1,44 @@ |
+// 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_UTIL_H__ |
+#define TOOLS_JSON_SCHEMA_COMPILER_UTIL_H__ |
+#pragma once |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "base/memory/scoped_ptr.h" |
+ |
+namespace base { |
+class DictionaryValue; |
+} |
+ |
+namespace json_schema_compiler { |
+namespace util { |
+ |
+bool GetStrings( |
+ const base::DictionaryValue& from, |
+ const std::string& name, |
+ std::vector<std::string>* out); |
+ |
+bool GetOptionalStrings( |
+ const base::DictionaryValue& from, |
+ const std::string& name, |
+ scoped_ptr<std::vector<std::string> >* out); |
+ |
+void SetStrings( |
+ const std::vector<std::string>& from, |
+ const std::string& name, |
+ base::DictionaryValue* out); |
+ |
+void SetOptionalStrings( |
+ const scoped_ptr<std::vector<std::string> >& from, |
+ const std::string& name, |
+ base::DictionaryValue* out); |
+ |
+} // namespace api_util |
+} // namespace extensions |
+ |
+#endif // TOOLS_JSON_SCHEMA_COMPILER_UTIL_H__ |