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

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

Issue 300853008: Refactor external_install_ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 namespace extensions { 46 namespace extensions {
47 class BrowserEventRouter; 47 class BrowserEventRouter;
48 class ComponentLoader; 48 class ComponentLoader;
49 class CrxInstaller; 49 class CrxInstaller;
50 class ExtensionActionStorageManager; 50 class ExtensionActionStorageManager;
51 class ExtensionErrorController; 51 class ExtensionErrorController;
52 class ExtensionRegistry; 52 class ExtensionRegistry;
53 class ExtensionSystem; 53 class ExtensionSystem;
54 class ExtensionToolbarModel; 54 class ExtensionToolbarModel;
55 class ExtensionUpdater; 55 class ExtensionUpdater;
56 class ExternalInstallManager;
56 class PendingExtensionManager; 57 class PendingExtensionManager;
57 class RendererStartupHelper; 58 class RendererStartupHelper;
58 class SharedModuleService; 59 class SharedModuleService;
59 class UpdateObserver; 60 class UpdateObserver;
60 } // namespace extensions 61 } // namespace extensions
61 62
62 using extensions::ExtensionIdSet; 63 using extensions::ExtensionIdSet;
63 64
64 namespace syncer { 65 namespace syncer {
65 class SyncErrorFactory; 66 class SyncErrorFactory;
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 #endif 442 #endif
442 443
443 base::WeakPtr<ExtensionService> AsWeakPtr() { return base::AsWeakPtr(this); } 444 base::WeakPtr<ExtensionService> AsWeakPtr() { return base::AsWeakPtr(this); }
444 445
445 bool browser_terminating() const { return browser_terminating_; } 446 bool browser_terminating() const { return browser_terminating_; }
446 447
447 extensions::SharedModuleService* shared_module_service() { 448 extensions::SharedModuleService* shared_module_service() {
448 return shared_module_service_.get(); 449 return shared_module_service_.get();
449 } 450 }
450 451
452 extensions::ExternalInstallManager* external_install_manager() {
453 return external_install_manager_.get();
454 }
455
451 // For testing. 456 // For testing.
452 void set_browser_terminating_for_test(bool value) { 457 void set_browser_terminating_for_test(bool value) {
453 browser_terminating_ = value; 458 browser_terminating_ = value;
454 } 459 }
455 460
456 // By default ExtensionService will wait with installing an updated extension 461 // By default ExtensionService will wait with installing an updated extension
457 // until the extension is idle. Tests might not like this behavior, so you can 462 // until the extension is idle. Tests might not like this behavior, so you can
458 // disable it with this method. 463 // disable it with this method.
459 void set_install_updates_when_idle_for_test(bool value) { 464 void set_install_updates_when_idle_for_test(bool value) {
460 install_updates_when_idle_ = value; 465 install_updates_when_idle_ = value;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 std::set<std::string> extensions_being_reloaded_; 678 std::set<std::string> extensions_being_reloaded_;
674 679
675 // A set of the extension ids currently being terminated. We use this to 680 // A set of the extension ids currently being terminated. We use this to
676 // avoid trying to unload the same extension twice. 681 // avoid trying to unload the same extension twice.
677 std::set<std::string> extensions_being_terminated_; 682 std::set<std::string> extensions_being_terminated_;
678 683
679 // The controller for the UI that alerts the user about any blacklisted 684 // The controller for the UI that alerts the user about any blacklisted
680 // extensions. 685 // extensions.
681 scoped_ptr<extensions::ExtensionErrorController> error_controller_; 686 scoped_ptr<extensions::ExtensionErrorController> error_controller_;
682 687
688 // The manager for extensions that were externally installed that is
689 // responsible for prompting the user about suspicious extensions.
690 scoped_ptr<extensions::ExternalInstallManager> external_install_manager_;
691
683 // Sequenced task runner for extension related file operations. 692 // Sequenced task runner for extension related file operations.
684 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 693 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
685 694
686 #if defined(ENABLE_EXTENSIONS) 695 #if defined(ENABLE_EXTENSIONS)
687 scoped_ptr<extensions::ExtensionActionStorageManager> 696 scoped_ptr<extensions::ExtensionActionStorageManager>
688 extension_action_storage_manager_; 697 extension_action_storage_manager_;
689 #endif 698 #endif
690 scoped_ptr<extensions::ManagementPolicy::Provider> 699 scoped_ptr<extensions::ManagementPolicy::Provider>
691 shared_module_policy_provider_; 700 shared_module_policy_provider_;
692 701
(...skipping 18 matching lines...) Expand all
711 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 720 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
712 GreylistedExtensionDisabled); 721 GreylistedExtensionDisabled);
713 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 722 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
714 GreylistDontEnableManuallyDisabled); 723 GreylistDontEnableManuallyDisabled);
715 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 724 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
716 GreylistUnknownDontChange); 725 GreylistUnknownDontChange);
717 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 726 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
718 }; 727 };
719 728
720 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 729 #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/external_install_error.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698