Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: extensions/common/extension_builder.h

Issue 48643003: Moved extension and value builder code to extensions component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « extensions/browser/lazy_background_task_queue_unittest.cc ('k') | extensions/common/extension_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698