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

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

Issue 1132113008: Extract DeclarativeUserScriptManager from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SYSTEM_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "extensions/browser/extension_system.h" 9 #include "extensions/browser/extension_system.h"
10 #include "extensions/common/one_shot_event.h" 10 #include "extensions/common/one_shot_event.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // KeyedService implementation. 33 // KeyedService implementation.
34 void Shutdown() override; 34 void Shutdown() override;
35 35
36 void InitForRegularProfile(bool extensions_enabled) override; 36 void InitForRegularProfile(bool extensions_enabled) override;
37 37
38 ExtensionService* extension_service() override; // shared 38 ExtensionService* extension_service() override; // shared
39 RuntimeData* runtime_data() override; // shared 39 RuntimeData* runtime_data() override; // shared
40 ManagementPolicy* management_policy() override; // shared 40 ManagementPolicy* management_policy() override; // shared
41 SharedUserScriptMaster* shared_user_script_master() override; // shared 41 SharedUserScriptMaster* shared_user_script_master() override; // shared
42 DeclarativeUserScriptManager* declarative_user_script_manager()
43 override; // shared
44 StateStore* state_store() override; // shared 42 StateStore* state_store() override; // shared
45 StateStore* rules_store() override; // shared 43 StateStore* rules_store() override; // shared
46 LazyBackgroundTaskQueue* lazy_background_task_queue() override; // shared 44 LazyBackgroundTaskQueue* lazy_background_task_queue() override; // shared
47 InfoMap* info_map() override; // shared 45 InfoMap* info_map() override; // shared
48 EventRouter* event_router() override; // shared 46 EventRouter* event_router() override; // shared
49 InstallVerifier* install_verifier() override; 47 InstallVerifier* install_verifier() override;
50 QuotaService* quota_service() override; // shared 48 QuotaService* quota_service() override; // shared
51 49
52 void RegisterExtensionWithRequestContexts( 50 void RegisterExtensionWithRequestContexts(
53 const Extension* extension) override; 51 const Extension* extension) override;
(...skipping 25 matching lines...) Expand all
79 77
80 // KeyedService implementation. 78 // KeyedService implementation.
81 void Shutdown() override; 79 void Shutdown() override;
82 80
83 StateStore* state_store(); 81 StateStore* state_store();
84 StateStore* rules_store(); 82 StateStore* rules_store();
85 ExtensionService* extension_service(); 83 ExtensionService* extension_service();
86 RuntimeData* runtime_data(); 84 RuntimeData* runtime_data();
87 ManagementPolicy* management_policy(); 85 ManagementPolicy* management_policy();
88 SharedUserScriptMaster* shared_user_script_master(); 86 SharedUserScriptMaster* shared_user_script_master();
89 DeclarativeUserScriptManager* declarative_user_script_manager();
90 InfoMap* info_map(); 87 InfoMap* info_map();
91 LazyBackgroundTaskQueue* lazy_background_task_queue(); 88 LazyBackgroundTaskQueue* lazy_background_task_queue();
92 EventRouter* event_router(); 89 EventRouter* event_router();
93 InstallVerifier* install_verifier(); 90 InstallVerifier* install_verifier();
94 QuotaService* quota_service(); 91 QuotaService* quota_service();
95 const OneShotEvent& ready() const { return ready_; } 92 const OneShotEvent& ready() const { return ready_; }
96 ContentVerifier* content_verifier(); 93 ContentVerifier* content_verifier();
97 94
98 private: 95 private:
99 Profile* profile_; 96 Profile* profile_;
100 97
101 // The services that are shared between normal and incognito profiles. 98 // The services that are shared between normal and incognito profiles.
102 99
103 scoped_ptr<StateStore> state_store_; 100 scoped_ptr<StateStore> state_store_;
104 scoped_ptr<StateStoreNotificationObserver> 101 scoped_ptr<StateStoreNotificationObserver>
105 state_store_notification_observer_; 102 state_store_notification_observer_;
106 scoped_ptr<StateStore> rules_store_; 103 scoped_ptr<StateStore> rules_store_;
107 // LazyBackgroundTaskQueue is a dependency of 104 // LazyBackgroundTaskQueue is a dependency of
108 // MessageService and EventRouter. 105 // MessageService and EventRouter.
109 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; 106 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_;
110 scoped_ptr<EventRouter> event_router_; 107 scoped_ptr<EventRouter> event_router_;
111 scoped_ptr<NavigationObserver> navigation_observer_; 108 scoped_ptr<NavigationObserver> navigation_observer_;
112 // Shared memory region manager for scripts statically declared in extension 109 // Shared memory region manager for scripts statically declared in extension
113 // manifests. This region is shared between all extensions. 110 // manifests. This region is shared between all extensions.
114 scoped_ptr<SharedUserScriptMaster> shared_user_script_master_; 111 scoped_ptr<SharedUserScriptMaster> shared_user_script_master_;
115 // Manager of a set of DeclarativeUserScript objects for programmatically
116 // declared scripts.
117 scoped_ptr<DeclarativeUserScriptManager> declarative_user_script_manager_;
118 scoped_ptr<RuntimeData> runtime_data_; 112 scoped_ptr<RuntimeData> runtime_data_;
119 // ExtensionService depends on StateStore, Blacklist and RuntimeData. 113 // ExtensionService depends on StateStore, Blacklist and RuntimeData.
120 scoped_ptr<ExtensionService> extension_service_; 114 scoped_ptr<ExtensionService> extension_service_;
121 scoped_ptr<ManagementPolicy> management_policy_; 115 scoped_ptr<ManagementPolicy> management_policy_;
122 // extension_info_map_ needs to outlive process_manager_. 116 // extension_info_map_ needs to outlive process_manager_.
123 scoped_refptr<InfoMap> extension_info_map_; 117 scoped_refptr<InfoMap> extension_info_map_;
124 scoped_ptr<InstallVerifier> install_verifier_; 118 scoped_ptr<InstallVerifier> install_verifier_;
125 scoped_ptr<QuotaService> quota_service_; 119 scoped_ptr<QuotaService> quota_service_;
126 120
127 // For verifying the contents of extensions read from disk. 121 // For verifying the contents of extensions read from disk.
(...skipping 10 matching lines...) Expand all
138 Profile* profile_; 132 Profile* profile_;
139 133
140 Shared* shared_; 134 Shared* shared_;
141 135
142 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); 136 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl);
143 }; 137 };
144 138
145 } // namespace extensions 139 } // namespace extensions
146 140
147 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ 141 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system_factory.cc ('k') | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698