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

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

Issue 11689004: Move PromoResourceService from Profile to BrowserProcessImpl/local_state(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang Created 7 years, 11 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 // 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>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/prefs/public/pref_change_registrar.h" 16 #include "base/prefs/public/pref_change_registrar.h"
17 #include "base/timer.h" 17 #include "base/timer.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile_impl_io_data.h" 19 #include "chrome/browser/profiles/profile_impl_io_data.h"
20 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 22
23 class NetPrefObserver; 23 class NetPrefObserver;
24 class PrefServiceSyncable; 24 class PrefServiceSyncable;
25 class PrefServiceBase; 25 class PrefServiceBase;
26 class PromoResourceService;
27 class SSLConfigServiceManager; 26 class SSLConfigServiceManager;
28 27
29 #if defined(OS_CHROMEOS) 28 #if defined(OS_CHROMEOS)
30 namespace chromeos { 29 namespace chromeos {
31 class EnterpriseExtensionObserver; 30 class EnterpriseExtensionObserver;
32 class LocaleChangeGuard; 31 class LocaleChangeGuard;
33 class Preferences; 32 class Preferences;
34 } 33 }
35 #endif 34 #endif
36 35
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual policy::PolicyService* GetPolicyService() OVERRIDE; 103 virtual policy::PolicyService* GetPolicyService() OVERRIDE;
105 virtual PrefServiceSyncable* GetPrefs() OVERRIDE; 104 virtual PrefServiceSyncable* GetPrefs() OVERRIDE;
106 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE; 105 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE;
107 virtual net::URLRequestContextGetter* 106 virtual net::URLRequestContextGetter*
108 GetRequestContextForExtensions() OVERRIDE; 107 GetRequestContextForExtensions() OVERRIDE;
109 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 108 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
110 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 109 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
111 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 110 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
112 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 111 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
113 virtual base::Time GetStartTime() const OVERRIDE; 112 virtual base::Time GetStartTime() const OVERRIDE;
114 virtual void InitPromoResources() OVERRIDE;
115 virtual FilePath last_selected_directory() OVERRIDE; 113 virtual FilePath last_selected_directory() OVERRIDE;
116 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 114 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
117 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 115 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
118 virtual void ClearNetworkingHistorySince( 116 virtual void ClearNetworkingHistorySince(
119 base::Time time, 117 base::Time time,
120 const base::Closure& completion) OVERRIDE; 118 const base::Closure& completion) OVERRIDE;
121 virtual GURL GetHomePage() OVERRIDE; 119 virtual GURL GetHomePage() OVERRIDE;
122 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 120 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
123 virtual void SetExitType(ExitType exit_type) OVERRIDE; 121 virtual void SetExitType(ExitType exit_type) OVERRIDE;
124 virtual ExitType GetLastSessionExitType() OVERRIDE; 122 virtual ExitType GetLastSessionExitType() OVERRIDE;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these 211 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these
214 // should become proper ProfileKeyedServices as well. 212 // should become proper ProfileKeyedServices as well.
215 #if !defined(OS_CHROMEOS) 213 #if !defined(OS_CHROMEOS)
216 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_; 214 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_;
217 #endif 215 #endif
218 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_; 216 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_;
219 #endif 217 #endif
220 scoped_ptr<policy::PolicyService> policy_service_; 218 scoped_ptr<policy::PolicyService> policy_service_;
221 219
222 // Keep |prefs_| on top for destruction order because |extension_prefs_|, 220 // Keep |prefs_| on top for destruction order because |extension_prefs_|,
223 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store 221 // |net_pref_observer_|, |io_data_| an others store pointers to |prefs_| and
224 // pointers to |prefs_| and shall be destructed first. 222 // shall be destructed first.
225 scoped_ptr<PrefServiceSyncable> prefs_; 223 scoped_ptr<PrefServiceSyncable> prefs_;
226 scoped_ptr<PrefServiceSyncable> otr_prefs_; 224 scoped_ptr<PrefServiceSyncable> otr_prefs_;
227 ProfileImplIOData::Handle io_data_; 225 ProfileImplIOData::Handle io_data_;
228 scoped_refptr<ExtensionSpecialStoragePolicy> 226 scoped_refptr<ExtensionSpecialStoragePolicy>
229 extension_special_storage_policy_; 227 extension_special_storage_policy_;
230 scoped_ptr<NetPrefObserver> net_pref_observer_; 228 scoped_ptr<NetPrefObserver> net_pref_observer_;
231 scoped_refptr<PromoResourceService> promo_resource_service_;
232 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 229 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
233 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 230 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
234 scoped_refptr<content::GeolocationPermissionContext> 231 scoped_refptr<content::GeolocationPermissionContext>
235 geolocation_permission_context_; 232 geolocation_permission_context_;
236 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_; 233 scoped_ptr<GAIAInfoUpdateService> gaia_info_update_service_;
237 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 234 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
238 235
239 // Exit type the last time the profile was opened. This is set only once from 236 // Exit type the last time the profile was opened. This is set only once from
240 // prefs. 237 // prefs.
241 ExitType last_session_exit_type_; 238 ExitType last_session_exit_type_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 274 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
278 275
279 Profile::Delegate* delegate_; 276 Profile::Delegate* delegate_;
280 277
281 chrome_browser_net::Predictor* predictor_; 278 chrome_browser_net::Predictor* predictor_;
282 279
283 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 280 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
284 }; 281 };
285 282
286 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 283 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698