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

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

Issue 150213: Add a ExtensionBrowserTest base class (Closed)
Patch Set: added timeouts fixed other tests Created 11 years, 5 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // user will be notified in the event of failure. If |callback| is non-null, 122 // user will be notified in the event of failure. If |callback| is non-null,
123 // it will be called back when the update is finished (in success or failure). 123 // it will be called back when the update is finished (in success or failure).
124 // This is useful to know when the service is done using |extension_path|. 124 // This is useful to know when the service is done using |extension_path|.
125 // Also, this takes ownership of |callback| if it's non-null. 125 // Also, this takes ownership of |callback| if it's non-null.
126 virtual void UpdateExtension(const std::string& id, 126 virtual void UpdateExtension(const std::string& id,
127 const FilePath& extension_path, 127 const FilePath& extension_path,
128 bool alert_on_error, 128 bool alert_on_error,
129 ExtensionInstallCallback* callback); 129 ExtensionInstallCallback* callback);
130 130
131 // Uninstalls the specified extension. Callers should only call this method 131 // Uninstalls the specified extension. Callers should only call this method
132 // with extensions that exist. 132 // with extensions that exist. |external_uninstall| is a magical parameter
133 // that is only used to send information to ExtensionPrefs, which external
134 // callers should never set to true.
135 // TODO(aa): Remove |external_uninstall| -- this information should be passed
136 // to ExtensionPrefs some other way.
133 void UninstallExtension(const std::string& extension_id, 137 void UninstallExtension(const std::string& extension_id,
134 bool external_uninstall); 138 bool external_uninstall);
135 139
136 // Load the extension from the directory |extension_path|. 140 // Load the extension from the directory |extension_path|.
137 void LoadExtension(const FilePath& extension_path); 141 void LoadExtension(const FilePath& extension_path);
138 142
139 // Load all known extensions (used by startup and testing code). 143 // Load all known extensions (used by startup and testing code).
140 void LoadAllExtensions(); 144 void LoadAllExtensions();
141 145
142 // Check for updates (or potentially new extensions from external providers) 146 // Check for updates (or potentially new extensions from external providers)
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 466
463 // A map of all external extension providers. 467 // A map of all external extension providers.
464 typedef std::map<Extension::Location, 468 typedef std::map<Extension::Location,
465 linked_ptr<ExternalExtensionProvider> > ProviderMap; 469 linked_ptr<ExternalExtensionProvider> > ProviderMap;
466 ProviderMap external_extension_providers_; 470 ProviderMap external_extension_providers_;
467 471
468 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 472 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
469 }; 473 };
470 474
471 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 475 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_startup_unittest.cc ('k') | chrome/browser/extensions/test_extension_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698