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_UTIL_H__ |
| 6 #define TOOLS_JSON_SCHEMA_COMPILER_UTIL_H__ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
| 12 #include "base/memory/scoped_ptr.h" |
| 13 |
| 14 namespace base { |
| 15 class DictionaryValue; |
| 16 } |
| 17 |
| 18 namespace json_schema_compiler { |
| 19 namespace util { |
| 20 |
| 21 bool GetStrings( |
| 22 const base::DictionaryValue& from, |
| 23 const std::string& name, |
| 24 std::vector<std::string>* out); |
| 25 |
| 26 bool GetOptionalStrings( |
| 27 const base::DictionaryValue& from, |
| 28 const std::string& name, |
| 29 scoped_ptr<std::vector<std::string> >* out); |
| 30 |
| 31 void SetStrings( |
| 32 const std::vector<std::string>& from, |
| 33 const std::string& name, |
| 34 base::DictionaryValue* out); |
| 35 |
| 36 void SetOptionalStrings( |
| 37 const scoped_ptr<std::vector<std::string> >& from, |
| 38 const std::string& name, |
| 39 base::DictionaryValue* out); |
| 40 |
| 41 } // namespace api_util |
| 42 } // namespace extensions |
| 43 |
| 44 #endif // TOOLS_JSON_SCHEMA_COMPILER_UTIL_H__ |
OLD | NEW |