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

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 11415094: Split UserCloudPolicyManager implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Crazy ProfileKeyedService hackery. Created 8 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 namespace content { 41 namespace content {
42 class SpeechRecognitionPreferences; 42 class SpeechRecognitionPreferences;
43 } 43 }
44 44
45 namespace extensions { 45 namespace extensions {
46 class ExtensionSystem; 46 class ExtensionSystem;
47 } 47 }
48 48
49 namespace policy {
50 class CloudPolicyManager;
51 }
52
49 // The default profile implementation. 53 // The default profile implementation.
50 class ProfileImpl : public Profile, 54 class ProfileImpl : public Profile,
51 public content::NotificationObserver, 55 public content::NotificationObserver,
52 public PrefObserver { 56 public PrefObserver {
53 public: 57 public:
54 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. 58 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests.
55 static const char* const kPrefExitTypeNormal; 59 static const char* const kPrefExitTypeNormal;
56 60
57 virtual ~ProfileImpl(); 61 virtual ~ProfileImpl();
58 62
(...skipping 30 matching lines...) Expand all
89 virtual Profile* GetOffTheRecordProfile() OVERRIDE; 93 virtual Profile* GetOffTheRecordProfile() OVERRIDE;
90 virtual void DestroyOffTheRecordProfile() OVERRIDE; 94 virtual void DestroyOffTheRecordProfile() OVERRIDE;
91 virtual bool HasOffTheRecordProfile() OVERRIDE; 95 virtual bool HasOffTheRecordProfile() OVERRIDE;
92 virtual Profile* GetOriginalProfile() OVERRIDE; 96 virtual Profile* GetOriginalProfile() OVERRIDE;
93 virtual history::TopSites* GetTopSites() OVERRIDE; 97 virtual history::TopSites* GetTopSites() OVERRIDE;
94 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 98 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
95 virtual ExtensionService* GetExtensionService() OVERRIDE; 99 virtual ExtensionService* GetExtensionService() OVERRIDE;
96 virtual ExtensionSpecialStoragePolicy* 100 virtual ExtensionSpecialStoragePolicy*
97 GetExtensionSpecialStoragePolicy() OVERRIDE; 101 GetExtensionSpecialStoragePolicy() OVERRIDE;
98 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; 102 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE;
99 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() OVERRIDE;
100 virtual policy::ManagedModePolicyProvider* 103 virtual policy::ManagedModePolicyProvider*
101 GetManagedModePolicyProvider() OVERRIDE; 104 GetManagedModePolicyProvider() OVERRIDE;
102 virtual policy::PolicyService* GetPolicyService() OVERRIDE; 105 virtual policy::PolicyService* GetPolicyService() OVERRIDE;
103 virtual PrefService* GetPrefs() OVERRIDE; 106 virtual PrefService* GetPrefs() OVERRIDE;
104 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 107 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
105 virtual net::URLRequestContextGetter* 108 virtual net::URLRequestContextGetter*
106 GetRequestContextForExtensions() OVERRIDE; 109 GetRequestContextForExtensions() OVERRIDE;
107 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 110 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
108 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 111 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
109 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 112 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // !!! BIG HONKING WARNING !!! 206 // !!! BIG HONKING WARNING !!!
204 // The order of the members below is important. Do not change it unless 207 // The order of the members below is important. Do not change it unless
205 // you know what you're doing. Also, if adding a new member here make sure 208 // you know what you're doing. Also, if adding a new member here make sure
206 // that the declaration occurs AFTER things it depends on as destruction 209 // that the declaration occurs AFTER things it depends on as destruction
207 // happens in reverse order of declaration. 210 // happens in reverse order of declaration.
208 211
209 #if defined(ENABLE_CONFIGURATION_POLICY) 212 #if defined(ENABLE_CONFIGURATION_POLICY)
210 // |prefs_| depends on |policy_service_|, which depends on 213 // |prefs_| depends on |policy_service_|, which depends on
211 // |user_cloud_policy_manager_| and |managed_mode_policy_provider_|. 214 // |user_cloud_policy_manager_| and |managed_mode_policy_provider_|.
212 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these 215 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these
213 // should become ProfileKeyedServices as well. 216 // should become proper ProfileKeyedServices as well.
214 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_; 217 scoped_ptr<policy::CloudPolicyManager> cloud_policy_manager_;
215 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_; 218 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_;
216 #endif 219 #endif
217 scoped_ptr<policy::PolicyService> policy_service_; 220 scoped_ptr<policy::PolicyService> policy_service_;
218 221
219 // Keep |prefs_| on top for destruction order because |extension_prefs_|, 222 // Keep |prefs_| on top for destruction order because |extension_prefs_|,
220 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store 223 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store
221 // pointers to |prefs_| and shall be destructed first. 224 // pointers to |prefs_| and shall be destructed first.
222 scoped_ptr<PrefService> prefs_; 225 scoped_ptr<PrefService> prefs_;
223 scoped_ptr<PrefService> otr_prefs_; 226 scoped_ptr<PrefService> otr_prefs_;
224 ProfileImplIOData::Handle io_data_; 227 ProfileImplIOData::Handle io_data_;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 277 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
275 278
276 Profile::Delegate* delegate_; 279 Profile::Delegate* delegate_;
277 280
278 chrome_browser_net::Predictor* predictor_; 281 chrome_browser_net::Predictor* predictor_;
279 282
280 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 283 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
281 }; 284 };
282 285
283 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 286 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698