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

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

Issue 1157005: Fix 2 bugs related to remembering loaded unpacked extensions. (Closed)
Patch Set: review feedback 2 Created 10 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 void ClearProvidersForTesting(); 215 void ClearProvidersForTesting();
216 216
217 // Sets an ExternalExtensionProvider for the service to use during testing. 217 // Sets an ExternalExtensionProvider for the service to use during testing.
218 // |location| specifies what type of provider should be added. 218 // |location| specifies what type of provider should be added.
219 void SetProviderForTesting(Extension::Location location, 219 void SetProviderForTesting(Extension::Location location,
220 ExternalExtensionProvider* test_provider); 220 ExternalExtensionProvider* test_provider);
221 221
222 // Called when the initial extensions load has completed. 222 // Called when the initial extensions load has completed.
223 virtual void OnLoadedInstalledExtensions(); 223 virtual void OnLoadedInstalledExtensions();
224 224
225 // Called by the backend when an extension has been loaded. 225 // Called when an extension has been loaded.
226 void OnExtensionLoaded(Extension* extension, 226 void OnExtensionLoaded(Extension* extension,
227 bool allow_privilege_increase); 227 bool allow_privilege_increase);
228 228
229 // Called by the backend when an extension has been installed. 229 // Called by the backend when an extension has been installed.
230 void OnExtensionInstalled(Extension* extension, 230 void OnExtensionInstalled(Extension* extension,
231 bool allow_privilege_increase); 231 bool allow_privilege_increase);
232 232
233 // Called by the backend when an attempt was made to reinstall the same 233 // Called by the backend when an attempt was made to reinstall the same
234 // version of an existing extension. 234 // version of an existing extension.
235 void OnExtensionOverinstallAttempted(const std::string& id); 235 void OnExtensionOverinstallAttempted(const std::string& id);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 467
468 // A map of all external extension providers. 468 // A map of all external extension providers.
469 typedef std::map<Extension::Location, 469 typedef std::map<Extension::Location,
470 linked_ptr<ExternalExtensionProvider> > ProviderMap; 470 linked_ptr<ExternalExtensionProvider> > ProviderMap;
471 ProviderMap external_extension_providers_; 471 ProviderMap external_extension_providers_;
472 472
473 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 473 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
474 }; 474 };
475 475
476 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 476 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698