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

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

Issue 195050: Linux: implement Page Actions support. (Closed)
Patch Set: comment clarification Created 11 years, 3 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const FilePath& install_directory() const { return install_directory_; } 95 const FilePath& install_directory() const { return install_directory_; }
96 96
97 // Initialize and start all installed extensions. 97 // Initialize and start all installed extensions.
98 void Init(); 98 void Init();
99 99
100 // Look up an extension by ID. 100 // Look up an extension by ID.
101 Extension* GetExtensionById(const std::string& id) { 101 Extension* GetExtensionById(const std::string& id) {
102 return GetExtensionByIdInternal(id, true, false); 102 return GetExtensionByIdInternal(id, true, false);
103 } 103 }
104 104
105 // Retrieves a vector of all page actions, irrespective of which
106 // extension they belong to.
107 std::vector<PageAction*> GetPageActions() const;
108
105 // Install the extension file at |extension_path|. Will install as an 109 // Install the extension file at |extension_path|. Will install as an
106 // update if an older version is already installed. 110 // update if an older version is already installed.
107 // For fresh installs, this method also causes the extension to be 111 // For fresh installs, this method also causes the extension to be
108 // immediately loaded. 112 // immediately loaded.
109 // TODO(aa): This method can be removed. It is only used by the unit tests, 113 // TODO(aa): This method can be removed. It is only used by the unit tests,
110 // and they could use CrxInstaller directly instead. 114 // and they could use CrxInstaller directly instead.
111 void InstallExtension(const FilePath& extension_path); 115 void InstallExtension(const FilePath& extension_path);
112 116
113 // Updates a currently-installed extension with the contents from 117 // Updates a currently-installed extension with the contents from
114 // |extension_path|. 118 // |extension_path|.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 365
362 // A map of all external extension providers. 366 // A map of all external extension providers.
363 typedef std::map<Extension::Location, 367 typedef std::map<Extension::Location,
364 linked_ptr<ExternalExtensionProvider> > ProviderMap; 368 linked_ptr<ExternalExtensionProvider> > ProviderMap;
365 ProviderMap external_extension_providers_; 369 ProviderMap external_extension_providers_;
366 370
367 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 371 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
368 }; 372 };
369 373
370 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 374 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browsertests_misc.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698