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

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

Issue 292893002: Cleanup from https://codereview.chromium.org/263643005/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 virtual base::SequencedTaskRunner* GetFileTaskRunner() OVERRIDE; 336 virtual base::SequencedTaskRunner* GetFileTaskRunner() OVERRIDE;
337 337
338 extensions::ComponentLoader* component_loader() { 338 extensions::ComponentLoader* component_loader() {
339 return component_loader_.get(); 339 return component_loader_.get();
340 } 340 }
341 341
342 // Note that this may return NULL if autoupdate is not turned on. 342 // Note that this may return NULL if autoupdate is not turned on.
343 extensions::ExtensionUpdater* updater(); 343 extensions::ExtensionUpdater* updater();
344 344
345 // Notify the frontend that there was an error loading an extension.
346 // This method is public because UnpackedInstaller and InstalledLoader
347 // can post to here.
348 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency
349 // of these classes on ExtensionService.
350 void ReportExtensionLoadError(const base::FilePath& extension_path,
351 const std::string& error);
352
353 // ExtensionHost of background page calls this method right after its render 345 // ExtensionHost of background page calls this method right after its render
354 // view has been created. 346 // view has been created.
355 void DidCreateRenderViewForBackgroundPage(extensions::ExtensionHost* host); 347 void DidCreateRenderViewForBackgroundPage(extensions::ExtensionHost* host);
356 348
357 // For the extension in |version_path| with |id|, check to see if it's an 349 // For the extension in |version_path| with |id|, check to see if it's an
358 // externally managed extension. If so, uninstall it. 350 // externally managed extension. If so, uninstall it.
359 void CheckExternalUninstall(const std::string& id); 351 void CheckExternalUninstall(const std::string& id);
360 352
361 // Changes sequenced task runner for crx installation tasks to |task_runner|. 353 // Changes sequenced task runner for crx installation tasks to |task_runner|.
362 void SetFileTaskRunnerForTesting(base::SequencedTaskRunner* task_runner); 354 void SetFileTaskRunnerForTesting(base::SequencedTaskRunner* task_runner);
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 704 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
713 GreylistedExtensionDisabled); 705 GreylistedExtensionDisabled);
714 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 706 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
715 GreylistDontEnableManuallyDisabled); 707 GreylistDontEnableManuallyDisabled);
716 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 708 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
717 GreylistUnknownDontChange); 709 GreylistUnknownDontChange);
718 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 710 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
719 }; 711 };
720 712
721 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 713 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698