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 CHROME_BROWSER_EXTENSIONS_GEN_UTIL_H__ | |
not at google - send to devlin
2012/01/12 06:01:05
this has the wrong #ifndef guard, but the presubmi
calamity
2012/01/12 22:59:20
Done. It wasn't in the presubmit checks? Maybe bec
| |
6 #define CHROME_BROWSER_EXTENSIONS_GEN_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 extensions { | |
19 namespace api_util { | |
not at google - send to devlin
2012/01/12 06:01:05
yeah,
s/extensions/json_schema_compiler/
s/api_ut
calamity
2012/01/12 22:59:20
Done.
| |
20 | |
21 bool GetStrings( | |
not at google - send to devlin
2012/01/12 06:01:05
these all need documentation, since the behaviour
calamity
2012/01/16 04:01:06
Done.
| |
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 template<class T> | |
42 bool GetTypes( | |
43 const base::DictionaryValue& from, | |
44 const std::string& name, | |
45 std::vector<T>* out); | |
46 | |
47 | |
48 } // namespace api_util | |
49 } // namespace extensions | |
50 | |
51 #endif // CHROME_BROWSER_EXTENSIONS_GEN_UTIL_H__ | |
OLD | NEW |