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

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

Issue 456063002: ExtensionUpdater: Abstract ExtensionDownloader creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 namespace content { 44 namespace content {
45 class DevToolsAgentHost; 45 class DevToolsAgentHost;
46 } 46 }
47 47
48 namespace extensions { 48 namespace extensions {
49 class ComponentLoader; 49 class ComponentLoader;
50 class CrxInstaller; 50 class CrxInstaller;
51 class ExtensionActionStorageManager; 51 class ExtensionActionStorageManager;
52 class ExtensionDownloader;
53 class ExtensionDownloaderDelegate;
52 class ExtensionErrorController; 54 class ExtensionErrorController;
53 class ExtensionRegistry; 55 class ExtensionRegistry;
54 class ExtensionSystem; 56 class ExtensionSystem;
55 class ExtensionUpdater; 57 class ExtensionUpdater;
56 class OneShotEvent; 58 class OneShotEvent;
57 class ExternalInstallManager; 59 class ExternalInstallManager;
58 class SharedModuleService; 60 class SharedModuleService;
59 class UpdateObserver; 61 class UpdateObserver;
60 } // namespace extensions 62 } // namespace extensions
61 63
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 455
454 // Set a callback to be called when all external providers are ready and their 456 // Set a callback to be called when all external providers are ready and their
455 // extensions have been installed. 457 // extensions have been installed.
456 void set_external_updates_finished_callback_for_test( 458 void set_external_updates_finished_callback_for_test(
457 const base::Closure& callback) { 459 const base::Closure& callback) {
458 external_updates_finished_callback_ = callback; 460 external_updates_finished_callback_ = callback;
459 } 461 }
460 462
461 463
462 private: 464 private:
465 // Creates an ExtensionDownloader for use by the updater.
466 scoped_ptr<extensions::ExtensionDownloader> CreateExtensionDownloader(
467 extensions::ExtensionDownloaderDelegate* delegate);
468
463 // Reloads the specified extension, sending the onLaunched() event to it if it 469 // Reloads the specified extension, sending the onLaunched() event to it if it
464 // currently has any window showing. |be_noisy| determines whether noisy 470 // currently has any window showing. |be_noisy| determines whether noisy
465 // failures are allowed for unpacked extension installs. 471 // failures are allowed for unpacked extension installs.
466 void ReloadExtensionImpl(const std::string& extension_id, bool be_noisy); 472 void ReloadExtensionImpl(const std::string& extension_id, bool be_noisy);
467 473
468 // content::NotificationObserver implementation: 474 // content::NotificationObserver implementation:
469 virtual void Observe(int type, 475 virtual void Observe(int type,
470 const content::NotificationSource& source, 476 const content::NotificationSource& source,
471 const content::NotificationDetails& details) OVERRIDE; 477 const content::NotificationDetails& details) OVERRIDE;
472 478
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 GreylistedExtensionDisabled); 734 GreylistedExtensionDisabled);
729 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 735 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
730 GreylistDontEnableManuallyDisabled); 736 GreylistDontEnableManuallyDisabled);
731 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 737 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
732 GreylistUnknownDontChange); 738 GreylistUnknownDontChange);
733 739
734 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 740 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
735 }; 741 };
736 742
737 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 743 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698