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

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

Issue 1129063011: Extract LazyBackgroundTaskQueue from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased from master 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 24 matching lines...) Expand all
35 void Shutdown() override; 35 void Shutdown() override;
36 36
37 void InitForRegularProfile(bool extensions_enabled) override; 37 void InitForRegularProfile(bool extensions_enabled) override;
38 38
39 ExtensionService* extension_service() override; // shared 39 ExtensionService* extension_service() override; // shared
40 RuntimeData* runtime_data() override; // shared 40 RuntimeData* runtime_data() override; // shared
41 ManagementPolicy* management_policy() override; // shared 41 ManagementPolicy* management_policy() override; // shared
42 SharedUserScriptMaster* shared_user_script_master() override; // shared 42 SharedUserScriptMaster* shared_user_script_master() override; // shared
43 StateStore* state_store() override; // shared 43 StateStore* state_store() override; // shared
44 StateStore* rules_store() override; // shared 44 StateStore* rules_store() override; // shared
45 LazyBackgroundTaskQueue* lazy_background_task_queue() override; // shared
46 InfoMap* info_map() override; // shared 45 InfoMap* info_map() override; // shared
47 EventRouter* event_router() override; // shared 46 EventRouter* event_router() override; // shared
48 QuotaService* quota_service() override; // shared 47 QuotaService* quota_service() override; // shared
49 48
50 void RegisterExtensionWithRequestContexts( 49 void RegisterExtensionWithRequestContexts(
51 const Extension* extension) override; 50 const Extension* extension) override;
52 51
53 void UnregisterExtensionWithRequestContexts( 52 void UnregisterExtensionWithRequestContexts(
54 const std::string& extension_id, 53 const std::string& extension_id,
55 const UnloadedExtensionInfo::Reason reason) override; 54 const UnloadedExtensionInfo::Reason reason) override;
(...skipping 22 matching lines...) Expand all
78 // KeyedService implementation. 77 // KeyedService implementation.
79 void Shutdown() override; 78 void Shutdown() override;
80 79
81 StateStore* state_store(); 80 StateStore* state_store();
82 StateStore* rules_store(); 81 StateStore* rules_store();
83 ExtensionService* extension_service(); 82 ExtensionService* extension_service();
84 RuntimeData* runtime_data(); 83 RuntimeData* runtime_data();
85 ManagementPolicy* management_policy(); 84 ManagementPolicy* management_policy();
86 SharedUserScriptMaster* shared_user_script_master(); 85 SharedUserScriptMaster* shared_user_script_master();
87 InfoMap* info_map(); 86 InfoMap* info_map();
88 LazyBackgroundTaskQueue* lazy_background_task_queue();
89 EventRouter* event_router(); 87 EventRouter* event_router();
90 QuotaService* quota_service(); 88 QuotaService* quota_service();
91 const OneShotEvent& ready() const { return ready_; } 89 const OneShotEvent& ready() const { return ready_; }
92 ContentVerifier* content_verifier(); 90 ContentVerifier* content_verifier();
93 91
94 private: 92 private:
95 Profile* profile_; 93 Profile* profile_;
96 94
97 // The services that are shared between normal and incognito profiles. 95 // The services that are shared between normal and incognito profiles.
98 96
99 scoped_ptr<StateStore> state_store_; 97 scoped_ptr<StateStore> state_store_;
100 scoped_ptr<StateStoreNotificationObserver> 98 scoped_ptr<StateStoreNotificationObserver>
101 state_store_notification_observer_; 99 state_store_notification_observer_;
102 scoped_ptr<StateStore> rules_store_; 100 scoped_ptr<StateStore> rules_store_;
103 // LazyBackgroundTaskQueue is a dependency of 101 // LazyBackgroundTaskQueue is a dependency of
104 // MessageService and EventRouter. 102 // MessageService and EventRouter.
105 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_;
106 scoped_ptr<EventRouter> event_router_; 103 scoped_ptr<EventRouter> event_router_;
107 scoped_ptr<NavigationObserver> navigation_observer_; 104 scoped_ptr<NavigationObserver> navigation_observer_;
108 // Shared memory region manager for scripts statically declared in extension 105 // Shared memory region manager for scripts statically declared in extension
109 // manifests. This region is shared between all extensions. 106 // manifests. This region is shared between all extensions.
110 scoped_ptr<SharedUserScriptMaster> shared_user_script_master_; 107 scoped_ptr<SharedUserScriptMaster> shared_user_script_master_;
111 scoped_ptr<RuntimeData> runtime_data_; 108 scoped_ptr<RuntimeData> runtime_data_;
112 // ExtensionService depends on StateStore, Blacklist and RuntimeData. 109 // ExtensionService depends on StateStore, Blacklist and RuntimeData.
113 scoped_ptr<ExtensionService> extension_service_; 110 scoped_ptr<ExtensionService> extension_service_;
114 scoped_ptr<ManagementPolicy> management_policy_; 111 scoped_ptr<ManagementPolicy> management_policy_;
115 // extension_info_map_ needs to outlive process_manager_. 112 // extension_info_map_ needs to outlive process_manager_.
(...skipping 14 matching lines...) Expand all
130 Profile* profile_; 127 Profile* profile_;
131 128
132 Shared* shared_; 129 Shared* shared_;
133 130
134 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); 131 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl);
135 }; 132 };
136 133
137 } // namespace extensions 134 } // namespace extensions
138 135
139 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ 136 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/devtools_util.cc ('k') | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698