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

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

Issue 63933003: Moved ExtensionInfoMap and ExtensionsQuotaService to extensions/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 1 month 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>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/prefs/pref_change_registrar.h" 19 #include "base/prefs/pref_change_registrar.h"
20 #include "base/strings/string16.h" 20 #include "base/strings/string16.h"
21 #include "chrome/browser/extensions/blacklist.h" 21 #include "chrome/browser/extensions/blacklist.h"
22 #include "chrome/browser/extensions/extension_function_histogram_value.h" 22 #include "chrome/browser/extensions/extension_function_histogram_value.h"
23 #include "chrome/browser/extensions/extension_icon_manager.h" 23 #include "chrome/browser/extensions/extension_icon_manager.h"
24 #include "chrome/browser/extensions/extension_prefs.h" 24 #include "chrome/browser/extensions/extension_prefs.h"
25 #include "chrome/browser/extensions/extension_process_manager.h" 25 #include "chrome/browser/extensions/extension_process_manager.h"
26 #include "chrome/browser/extensions/extension_sync_service.h" 26 #include "chrome/browser/extensions/extension_sync_service.h"
27 #include "chrome/browser/extensions/extension_toolbar_model.h" 27 #include "chrome/browser/extensions/extension_toolbar_model.h"
28 #include "chrome/browser/extensions/extensions_quota_service.h"
29 #include "chrome/browser/extensions/external_provider_interface.h" 28 #include "chrome/browser/extensions/external_provider_interface.h"
30 #include "chrome/browser/extensions/management_policy.h" 29 #include "chrome/browser/extensions/management_policy.h"
31 #include "chrome/browser/extensions/menu_manager.h" 30 #include "chrome/browser/extensions/menu_manager.h"
32 #include "chrome/browser/extensions/pending_enables.h" 31 #include "chrome/browser/extensions/pending_enables.h"
33 #include "chrome/browser/extensions/pending_extension_manager.h" 32 #include "chrome/browser/extensions/pending_extension_manager.h"
34 #include "chrome/browser/extensions/process_map.h" 33 #include "chrome/browser/extensions/process_map.h"
35 #include "chrome/browser/extensions/update_observer.h" 34 #include "chrome/browser/extensions/update_observer.h"
36 #include "chrome/common/extensions/extension.h" 35 #include "chrome/common/extensions/extension.h"
37 #include "chrome/common/extensions/extension_constants.h" 36 #include "chrome/common/extensions/extension_constants.h"
38 #include "chrome/common/extensions/extension_set.h" 37 #include "chrome/common/extensions/extension_set.h"
39 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" 38 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h"
40 #include "content/public/browser/devtools_agent_host.h" 39 #include "content/public/browser/devtools_agent_host.h"
41 #include "content/public/browser/notification_observer.h" 40 #include "content/public/browser/notification_observer.h"
42 #include "content/public/browser/notification_registrar.h" 41 #include "content/public/browser/notification_registrar.h"
42 #include "extensions/browser/quota_service.h"
43 #include "extensions/common/manifest.h" 43 #include "extensions/common/manifest.h"
44 #include "extensions/common/one_shot_event.h" 44 #include "extensions/common/one_shot_event.h"
45 45
46 class CommandLine; 46 class CommandLine;
47 class ExtensionErrorUI; 47 class ExtensionErrorUI;
48 class ExtensionToolbarModel; 48 class ExtensionToolbarModel;
49 class GURL; 49 class GURL;
50 class Profile; 50 class Profile;
51 51
52 namespace base { 52 namespace base {
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 extensions::ComponentLoader* component_loader() { 451 extensions::ComponentLoader* component_loader() {
452 return component_loader_.get(); 452 return component_loader_.get();
453 } 453 }
454 454
455 // Note that this may return NULL if autoupdate is not turned on. 455 // Note that this may return NULL if autoupdate is not turned on.
456 extensions::ExtensionUpdater* updater(); 456 extensions::ExtensionUpdater* updater();
457 457
458 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; } 458 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; }
459 459
460 ExtensionsQuotaService* quota_service() { return &quota_service_; } 460 extensions::QuotaService* quota_service() { return &quota_service_; }
461 461
462 extensions::MenuManager* menu_manager() { return &menu_manager_; } 462 extensions::MenuManager* menu_manager() { return &menu_manager_; }
463 463
464 // Notify the frontend that there was an error loading an extension. 464 // Notify the frontend that there was an error loading an extension.
465 // This method is public because UnpackedInstaller and InstalledLoader 465 // This method is public because UnpackedInstaller and InstalledLoader
466 // can post to here. 466 // can post to here.
467 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency 467 // TODO(aa): Remove this. It doesn't do enough to be worth the dependency
468 // of these classes on ExtensionService. 468 // of these classes on ExtensionService.
469 void ReportExtensionLoadError(const base::FilePath& extension_path, 469 void ReportExtensionLoadError(const base::FilePath& extension_path,
470 const std::string& error, 470 const std::string& error,
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 bool extensions_enabled_; 757 bool extensions_enabled_;
758 758
759 // Whether to notify users when they attempt to install an extension. 759 // Whether to notify users when they attempt to install an extension.
760 bool show_extensions_prompts_; 760 bool show_extensions_prompts_;
761 761
762 // Whether to delay installing of extension updates until the extension is 762 // Whether to delay installing of extension updates until the extension is
763 // idle. 763 // idle.
764 bool install_updates_when_idle_; 764 bool install_updates_when_idle_;
765 765
766 // Used by dispatchers to limit API quota for individual extensions. 766 // Used by dispatchers to limit API quota for individual extensions.
767 ExtensionsQuotaService quota_service_; 767 extensions::QuotaService quota_service_;
768 768
769 // Signaled when all extensions are loaded. 769 // Signaled when all extensions are loaded.
770 extensions::OneShotEvent* const ready_; 770 extensions::OneShotEvent* const ready_;
771 771
772 // Our extension updater, if updates are turned on. 772 // Our extension updater, if updates are turned on.
773 scoped_ptr<extensions::ExtensionUpdater> updater_; 773 scoped_ptr<extensions::ExtensionUpdater> updater_;
774 774
775 // The model that tracks extensions with BrowserAction buttons. 775 // The model that tracks extensions with BrowserAction buttons.
776 ExtensionToolbarModel toolbar_model_; 776 ExtensionToolbarModel toolbar_model_;
777 777
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 #endif 855 #endif
856 856
857 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 857 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
858 InstallAppsWithUnlimtedStorage); 858 InstallAppsWithUnlimtedStorage);
859 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 859 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
860 InstallAppsAndCheckStorageProtection); 860 InstallAppsAndCheckStorageProtection);
861 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 861 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
862 }; 862 };
863 863
864 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 864 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698