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

Side by Side Diff: chrome/browser/extensions/extensions_service.h

Issue 118328: chrome.exe --package-extension (Closed)
Patch Set: final Created 11 years, 6 months 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 class ResourceDispatcherHost; 28 class ResourceDispatcherHost;
29 class SkBitmap; 29 class SkBitmap;
30 class SiteInstance; 30 class SiteInstance;
31 class UserScriptMaster; 31 class UserScriptMaster;
32 typedef std::vector<Extension*> ExtensionList; 32 typedef std::vector<Extension*> ExtensionList;
33 33
34 // Manages installed and running Chromium extensions. 34 // Manages installed and running Chromium extensions.
35 class ExtensionsService 35 class ExtensionsService
36 : public base::RefCountedThreadSafe<ExtensionsService> { 36 : public base::RefCountedThreadSafe<ExtensionsService> {
37 public: 37 public:
38 static const int kExtensionFileMagicSize = 4;
39 static const char* kExtensionFileMagic;
40
41 struct ExtensionHeader {
42 char magic[kExtensionFileMagicSize];
43 uint32 version;
44 size_t header_size;
45 size_t manifest_size;
46 };
47
38 ExtensionsService(Profile* profile, 48 ExtensionsService(Profile* profile,
39 MessageLoop* frontend_loop, 49 MessageLoop* frontend_loop,
40 MessageLoop* backend_loop, 50 MessageLoop* backend_loop,
41 const std::string& registry_path); 51 const std::string& registry_path);
42 ~ExtensionsService(); 52 ~ExtensionsService();
43 53
44 // Gets the list of currently installed extensions. 54 // Gets the list of currently installed extensions.
45 const ExtensionList* extensions() const { 55 const ExtensionList* extensions() const {
46 return &extensions_; 56 return &extensions_;
47 } 57 }
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 319
310 // The path to look for externally registered extensions in. This is a 320 // The path to look for externally registered extensions in. This is a
311 // registry key on windows, but it could be a similar string for the 321 // registry key on windows, but it could be a similar string for the
312 // appropriate system on other platforms in the future. 322 // appropriate system on other platforms in the future.
313 std::string registry_path_; 323 std::string registry_path_;
314 324
315 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 325 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
316 }; 326 };
317 327
318 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 328 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_creator.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698