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

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: Comment fix 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/extensions_quota_service.h"
28 #include "chrome/browser/extensions/external_provider_interface.h" 27 #include "chrome/browser/extensions/external_provider_interface.h"
29 #include "chrome/browser/extensions/management_policy.h" 28 #include "chrome/browser/extensions/management_policy.h"
30 #include "chrome/browser/extensions/menu_manager.h" 29 #include "chrome/browser/extensions/menu_manager.h"
31 #include "chrome/browser/extensions/pending_enables.h" 30 #include "chrome/browser/extensions/pending_enables.h"
32 #include "chrome/browser/extensions/pending_extension_manager.h" 31 #include "chrome/browser/extensions/pending_extension_manager.h"
33 #include "chrome/browser/extensions/process_map.h" 32 #include "chrome/browser/extensions/process_map.h"
34 #include "chrome/browser/extensions/update_observer.h" 33 #include "chrome/browser/extensions/update_observer.h"
35 #include "chrome/common/extensions/extension.h" 34 #include "chrome/common/extensions/extension.h"
36 #include "chrome/common/extensions/extension_constants.h" 35 #include "chrome/common/extensions/extension_constants.h"
37 #include "chrome/common/extensions/extension_set.h" 36 #include "chrome/common/extensions/extension_set.h"
38 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h" 37 #include "chrome/common/extensions/manifest_handlers/shared_module_info.h"
39 #include "content/public/browser/devtools_agent_host.h" 38 #include "content/public/browser/devtools_agent_host.h"
40 #include "content/public/browser/notification_observer.h" 39 #include "content/public/browser/notification_observer.h"
41 #include "content/public/browser/notification_registrar.h" 40 #include "content/public/browser/notification_registrar.h"
41 #include "extensions/browser/quota_service.h"
42 #include "extensions/common/manifest.h" 42 #include "extensions/common/manifest.h"
43 #include "extensions/common/one_shot_event.h" 43 #include "extensions/common/one_shot_event.h"
44 44
45 class CommandLine; 45 class CommandLine;
46 class ExtensionErrorUI; 46 class ExtensionErrorUI;
47 class ExtensionToolbarModel; 47 class ExtensionToolbarModel;
48 class GURL; 48 class GURL;
49 class Profile; 49 class Profile;
50 50
51 namespace base { 51 namespace base {
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 virtual base::SequencedTaskRunner* GetFileTaskRunner() OVERRIDE; 448 virtual base::SequencedTaskRunner* GetFileTaskRunner() OVERRIDE;
449 449
450 extensions::ComponentLoader* component_loader() { 450 extensions::ComponentLoader* component_loader() {
451 return component_loader_.get(); 451 return component_loader_.get();
452 } 452 }
453 453
454 // Note that this may return NULL if autoupdate is not turned on. 454 // Note that this may return NULL if autoupdate is not turned on.
455 extensions::ExtensionUpdater* updater(); 455 extensions::ExtensionUpdater* updater();
456 456
457 ExtensionsQuotaService* quota_service() { return &quota_service_; } 457 extensions::QuotaService* quota_service() { return &quota_service_; }
458 458
459 extensions::MenuManager* menu_manager() { return &menu_manager_; } 459 extensions::MenuManager* menu_manager() { return &menu_manager_; }
460 460
461 // Sets the name, id and icon resource path of the given extension into the 461 // Sets the name, id and icon resource path of the given extension into the
462 // returned dictionary. Returns an empty dictionary if the given extension id 462 // returned dictionary. Returns an empty dictionary if the given extension id
463 // is not found. 463 // is not found.
464 scoped_ptr<DictionaryValue> GetExtensionInfo( 464 scoped_ptr<DictionaryValue> GetExtensionInfo(
465 const std::string& extension_id) const; 465 const std::string& extension_id) const;
466 466
467 // Notify the frontend that there was an error loading an extension. 467 // Notify the frontend that there was an error loading an extension.
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 bool extensions_enabled_; 760 bool extensions_enabled_;
761 761
762 // Whether to notify users when they attempt to install an extension. 762 // Whether to notify users when they attempt to install an extension.
763 bool show_extensions_prompts_; 763 bool show_extensions_prompts_;
764 764
765 // Whether to delay installing of extension updates until the extension is 765 // Whether to delay installing of extension updates until the extension is
766 // idle. 766 // idle.
767 bool install_updates_when_idle_; 767 bool install_updates_when_idle_;
768 768
769 // Used by dispatchers to limit API quota for individual extensions. 769 // Used by dispatchers to limit API quota for individual extensions.
770 ExtensionsQuotaService quota_service_; 770 extensions::QuotaService quota_service_;
771 771
772 // Signaled when all extensions are loaded. 772 // Signaled when all extensions are loaded.
773 extensions::OneShotEvent* const ready_; 773 extensions::OneShotEvent* const ready_;
774 774
775 // Our extension updater, if updates are turned on. 775 // Our extension updater, if updates are turned on.
776 scoped_ptr<extensions::ExtensionUpdater> updater_; 776 scoped_ptr<extensions::ExtensionUpdater> updater_;
777 777
778 // Map unloaded extensions' ids to their paths. When a temporarily loaded 778 // Map unloaded extensions' ids to their paths. When a temporarily loaded
779 // extension is unloaded, we lose the information about it and don't have 779 // extension is unloaded, we lose the information about it and don't have
780 // any in the extension preferences file. 780 // any in the extension preferences file.
(...skipping 74 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
« no previous file with comments | « chrome/browser/extensions/extension_protocols_unittest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698