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

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

Issue 2881453002: DNR Prototype: With flatbuffers
Patch Set: -- Created 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void RegisterExtensionWithRequestContexts( 63 void RegisterExtensionWithRequestContexts(
64 const Extension* extension, 64 const Extension* extension,
65 const base::Closure& callback) override; 65 const base::Closure& callback) override;
66 66
67 void UnregisterExtensionWithRequestContexts( 67 void UnregisterExtensionWithRequestContexts(
68 const std::string& extension_id, 68 const std::string& extension_id,
69 const UnloadedExtensionReason reason) override; 69 const UnloadedExtensionReason reason) override;
70 70
71 const OneShotEvent& ready() const override; 71 const OneShotEvent& ready() const override;
72 ContentVerifier* content_verifier() override; // shared 72 ContentVerifier* content_verifier() override; // shared
73 declarative_net_request::RulesMonitor* rules_monitor() override; // shared
73 std::unique_ptr<ExtensionSet> GetDependentExtensions( 74 std::unique_ptr<ExtensionSet> GetDependentExtensions(
74 const Extension* extension) override; 75 const Extension* extension) override;
75 void InstallUpdate(const std::string& extension_id, 76 void InstallUpdate(const std::string& extension_id,
76 const base::FilePath& temp_dir) override; 77 const base::FilePath& temp_dir) override;
77 78
78 private: 79 private:
79 friend class ExtensionSystemSharedFactory; 80 friend class ExtensionSystemSharedFactory;
80 81
81 // Owns the Extension-related systems that have a single instance 82 // Owns the Extension-related systems that have a single instance
82 // shared between normal and incognito profiles. 83 // shared between normal and incognito profiles.
(...skipping 18 matching lines...) Expand all
101 ExtensionService* extension_service(); 102 ExtensionService* extension_service();
102 RuntimeData* runtime_data(); 103 RuntimeData* runtime_data();
103 ManagementPolicy* management_policy(); 104 ManagementPolicy* management_policy();
104 ServiceWorkerManager* service_worker_manager(); 105 ServiceWorkerManager* service_worker_manager();
105 SharedUserScriptMaster* shared_user_script_master(); 106 SharedUserScriptMaster* shared_user_script_master();
106 InfoMap* info_map(); 107 InfoMap* info_map();
107 QuotaService* quota_service(); 108 QuotaService* quota_service();
108 AppSorting* app_sorting(); 109 AppSorting* app_sorting();
109 const OneShotEvent& ready() const { return ready_; } 110 const OneShotEvent& ready() const { return ready_; }
110 ContentVerifier* content_verifier(); 111 ContentVerifier* content_verifier();
112 declarative_net_request::RulesMonitor* rules_monitor();
111 113
112 private: 114 private:
113 // content::NotificationObserver implementation. 115 // content::NotificationObserver implementation.
114 void Observe(int type, 116 void Observe(int type,
115 const content::NotificationSource& source, 117 const content::NotificationSource& source,
116 const content::NotificationDetails& details) override; 118 const content::NotificationDetails& details) override;
117 119
118 Profile* profile_; 120 Profile* profile_;
119 121
120 // The services that are shared between normal and incognito profiles. 122 // The services that are shared between normal and incognito profiles.
(...skipping 15 matching lines...) Expand all
136 std::unique_ptr<ManagementPolicy> management_policy_; 138 std::unique_ptr<ManagementPolicy> management_policy_;
137 // extension_info_map_ needs to outlive process_manager_. 139 // extension_info_map_ needs to outlive process_manager_.
138 scoped_refptr<InfoMap> extension_info_map_; 140 scoped_refptr<InfoMap> extension_info_map_;
139 std::unique_ptr<QuotaService> quota_service_; 141 std::unique_ptr<QuotaService> quota_service_;
140 std::unique_ptr<AppSorting> app_sorting_; 142 std::unique_ptr<AppSorting> app_sorting_;
141 std::unique_ptr<InstallGate> update_install_gate_; 143 std::unique_ptr<InstallGate> update_install_gate_;
142 144
143 // For verifying the contents of extensions read from disk. 145 // For verifying the contents of extensions read from disk.
144 scoped_refptr<ContentVerifier> content_verifier_; 146 scoped_refptr<ContentVerifier> content_verifier_;
145 147
148 std::unique_ptr<declarative_net_request::RulesMonitor> rules_monitor_;
146 std::unique_ptr<UninstallPingSender> uninstall_ping_sender_; 149 std::unique_ptr<UninstallPingSender> uninstall_ping_sender_;
147 150
148 #if defined(OS_CHROMEOS) 151 #if defined(OS_CHROMEOS)
149 std::unique_ptr<chromeos::DeviceLocalAccountManagementPolicyProvider> 152 std::unique_ptr<chromeos::DeviceLocalAccountManagementPolicyProvider>
150 device_local_account_management_policy_provider_; 153 device_local_account_management_policy_provider_;
151 std::unique_ptr<chromeos::SigninScreenPolicyProvider> 154 std::unique_ptr<chromeos::SigninScreenPolicyProvider>
152 signin_screen_policy_provider_; 155 signin_screen_policy_provider_;
153 std::unique_ptr<InstallGate> kiosk_app_update_install_gate_; 156 std::unique_ptr<InstallGate> kiosk_app_update_install_gate_;
154 #endif 157 #endif
155 158
156 OneShotEvent ready_; 159 OneShotEvent ready_;
157 }; 160 };
158 161
159 Profile* profile_; 162 Profile* profile_;
160 163
161 Shared* shared_; 164 Shared* shared_;
162 165
163 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); 166 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl);
164 }; 167 };
165 168
166 } // namespace extensions 169 } // namespace extensions
167 170
168 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ 171 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_system_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698