| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ |
| 6 #define EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 11 #include "extensions/common/manifest.h" | 13 #include "extensions/common/manifest.h" |
| 12 #include "extensions/common/value_builder.h" | 14 #include "extensions/common/value_builder.h" |
| 13 | 15 |
| 14 namespace extensions { | 16 namespace extensions { |
| 15 class Extension; | 17 class Extension; |
| 16 | 18 |
| 17 // An easier way to create extensions than Extension::Create. The | 19 // An easier way to create extensions than Extension::Create. The |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 ExtensionBuilder& SetID(const std::string& id); | 53 ExtensionBuilder& SetID(const std::string& id); |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 base::FilePath path_; | 56 base::FilePath path_; |
| 55 Manifest::Location location_; | 57 Manifest::Location location_; |
| 56 scoped_ptr<base::DictionaryValue> manifest_; | 58 scoped_ptr<base::DictionaryValue> manifest_; |
| 57 int flags_; | 59 int flags_; |
| 58 std::string id_; | 60 std::string id_; |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace extensions | 63 } // namespace extensions |
| 62 | 64 |
| 63 #endif // EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ | 65 #endif // EXTENSIONS_COMMON_EXTENSION_BUILDER_H_ |
| OLD | NEW |