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

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

Issue 159323: Make possible restarting extensions from the chrome://extensions/ page.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // |extension_path|. The |alert_on_error| parameter controls whether the 146 // |extension_path|. The |alert_on_error| parameter controls whether the
147 // user will be notified in the event of failure. If |callback| is non-null, 147 // user will be notified in the event of failure. If |callback| is non-null,
148 // it will be called back when the update is finished (in success or failure). 148 // it will be called back when the update is finished (in success or failure).
149 // This is useful to know when the service is done using |extension_path|. 149 // This is useful to know when the service is done using |extension_path|.
150 // Also, this takes ownership of |callback| if it's non-null. 150 // Also, this takes ownership of |callback| if it's non-null.
151 virtual void UpdateExtension(const std::string& id, 151 virtual void UpdateExtension(const std::string& id,
152 const FilePath& extension_path, 152 const FilePath& extension_path,
153 bool alert_on_error, 153 bool alert_on_error,
154 ExtensionInstallCallback* callback); 154 ExtensionInstallCallback* callback);
155 155
156 // Reloads the specified extension.
157 void ReloadExtension(const std::string& extension_id);
158
156 // Uninstalls the specified extension. Callers should only call this method 159 // Uninstalls the specified extension. Callers should only call this method
157 // with extensions that exist. |external_uninstall| is a magical parameter 160 // with extensions that exist. |external_uninstall| is a magical parameter
158 // that is only used to send information to ExtensionPrefs, which external 161 // that is only used to send information to ExtensionPrefs, which external
159 // callers should never set to true. 162 // callers should never set to true.
160 // TODO(aa): Remove |external_uninstall| -- this information should be passed 163 // TODO(aa): Remove |external_uninstall| -- this information should be passed
161 // to ExtensionPrefs some other way. 164 // to ExtensionPrefs some other way.
162 void UninstallExtension(const std::string& extension_id, 165 void UninstallExtension(const std::string& extension_id,
163 bool external_uninstall); 166 bool external_uninstall);
164 167
165 // Load the extension from the directory |extension_path|. 168 // Load the extension from the directory |extension_path|.
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 512
510 // A map of all external extension providers. 513 // A map of all external extension providers.
511 typedef std::map<Extension::Location, 514 typedef std::map<Extension::Location,
512 linked_ptr<ExternalExtensionProvider> > ProviderMap; 515 linked_ptr<ExternalExtensionProvider> > ProviderMap;
513 ProviderMap external_extension_providers_; 516 ProviderMap external_extension_providers_;
514 517
515 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 518 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
516 }; 519 };
517 520
518 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 521 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698