OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_BUILDER_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_BUILDER_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/common/extensions/value_builder.h" | |
12 #include "extensions/common/manifest.h" | 11 #include "extensions/common/manifest.h" |
| 12 #include "extensions/common/value_builder.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 class Extension; | 15 class Extension; |
16 | 16 |
17 // An easier way to create extensions than Extension::Create. The | 17 // An easier way to create extensions than Extension::Create. The |
18 // constructor sets up some defaults which are customized using the | 18 // constructor sets up some defaults which are customized using the |
19 // methods. The only method that must be called is SetManifest(). | 19 // methods. The only method that must be called is SetManifest(). |
20 class ExtensionBuilder { | 20 class ExtensionBuilder { |
21 public: | 21 public: |
22 ExtensionBuilder(); | 22 ExtensionBuilder(); |
(...skipping 30 matching lines...) Expand all Loading... |
53 private: | 53 private: |
54 base::FilePath path_; | 54 base::FilePath path_; |
55 Manifest::Location location_; | 55 Manifest::Location location_; |
56 scoped_ptr<base::DictionaryValue> manifest_; | 56 scoped_ptr<base::DictionaryValue> manifest_; |
57 int flags_; | 57 int flags_; |
58 std::string id_; | 58 std::string id_; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace extensions | 61 } // namespace extensions |
62 | 62 |
63 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_BUILDER_H_ | 63 #endif // EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ |
OLD | NEW |