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

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

Issue 24261010: Allow explicitly whitelisted apps/extensions in public sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix handing of guest user ID. Created 7 years, 2 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 | 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_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/common/extensions/extension_constants.h" 12 #include "chrome/common/extensions/extension_constants.h"
13 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 13 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
14 #include "extensions/common/one_shot_event.h" 14 #include "extensions/common/one_shot_event.h"
15 15
16 class ExtensionInfoMap; 16 class ExtensionInfoMap;
17 class ExtensionProcessManager; 17 class ExtensionProcessManager;
18 class ExtensionService; 18 class ExtensionService;
19 class Profile; 19 class Profile;
20 20
21 #if defined(OS_CHROMEOS)
22 namespace chromeos {
23 class DeviceLocalAccountManagementPolicyProvider;
24 }
25 #endif // defined(OS_CHROMEOS)
26
21 namespace extensions { 27 namespace extensions {
22 class Blacklist; 28 class Blacklist;
23 class ErrorConsole; 29 class ErrorConsole;
24 class EventRouter; 30 class EventRouter;
25 class Extension; 31 class Extension;
26 class ExtensionSystemSharedFactory; 32 class ExtensionSystemSharedFactory;
27 class ExtensionWarningBadgeService; 33 class ExtensionWarningBadgeService;
28 class ExtensionWarningService; 34 class ExtensionWarningService;
29 class LazyBackgroundTaskQueue; 35 class LazyBackgroundTaskQueue;
30 class ManagementPolicy; 36 class ManagementPolicy;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 standard_management_policy_provider_; 212 standard_management_policy_provider_;
207 // ExtensionService depends on StateStore and Blacklist. 213 // ExtensionService depends on StateStore and Blacklist.
208 scoped_ptr<ExtensionService> extension_service_; 214 scoped_ptr<ExtensionService> extension_service_;
209 scoped_ptr<ManagementPolicy> management_policy_; 215 scoped_ptr<ManagementPolicy> management_policy_;
210 // extension_info_map_ needs to outlive extension_process_manager_. 216 // extension_info_map_ needs to outlive extension_process_manager_.
211 scoped_refptr<ExtensionInfoMap> extension_info_map_; 217 scoped_refptr<ExtensionInfoMap> extension_info_map_;
212 scoped_ptr<ExtensionWarningService> extension_warning_service_; 218 scoped_ptr<ExtensionWarningService> extension_warning_service_;
213 scoped_ptr<ExtensionWarningBadgeService> extension_warning_badge_service_; 219 scoped_ptr<ExtensionWarningBadgeService> extension_warning_badge_service_;
214 scoped_ptr<ErrorConsole> error_console_; 220 scoped_ptr<ErrorConsole> error_console_;
215 221
222 #if defined(OS_CHROMEOS)
223 scoped_ptr<chromeos::DeviceLocalAccountManagementPolicyProvider>
224 device_local_account_management_policy_provider_;
225 #endif
226
216 OneShotEvent ready_; 227 OneShotEvent ready_;
217 }; 228 };
218 229
219 Profile* profile_; 230 Profile* profile_;
220 231
221 Shared* shared_; 232 Shared* shared_;
222 233
223 // |extension_process_manager_| must be destroyed before the Profile's 234 // |extension_process_manager_| must be destroyed before the Profile's
224 // |io_data_|. While |extension_process_manager_| still lives, we handle 235 // |io_data_|. While |extension_process_manager_| still lives, we handle
225 // incoming resource requests from extension processes and those require 236 // incoming resource requests from extension processes and those require
226 // access to the ResourceContext owned by |io_data_|. 237 // access to the ResourceContext owned by |io_data_|.
227 scoped_ptr<ExtensionProcessManager> extension_process_manager_; 238 scoped_ptr<ExtensionProcessManager> extension_process_manager_;
228 239
229 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); 240 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl);
230 }; 241 };
231 242
232 } // namespace extensions 243 } // namespace extensions
233 244
234 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ 245 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account_policy_store.cc ('k') | chrome/browser/extensions/extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698