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

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: rebase 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual policy::PolicyService* GetPolicyService() OVERRIDE; 102 virtual policy::PolicyService* GetPolicyService() OVERRIDE;
104 virtual PrefServiceSyncable* GetPrefs() OVERRIDE; 103 virtual PrefServiceSyncable* GetPrefs() OVERRIDE;
105 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE; 104 virtual PrefServiceSyncable* GetOffTheRecordPrefs() OVERRIDE;
106 virtual net::URLRequestContextGetter* 105 virtual net::URLRequestContextGetter*
107 GetRequestContextForExtensions() OVERRIDE; 106 GetRequestContextForExtensions() OVERRIDE;
108 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 107 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
109 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 108 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
110 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 109 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
111 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 110 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
112 virtual base::Time GetStartTime() const OVERRIDE; 111 virtual base::Time GetStartTime() const OVERRIDE;
113 virtual void InitPromoResources() OVERRIDE;
114 virtual FilePath last_selected_directory() OVERRIDE; 112 virtual FilePath last_selected_directory() OVERRIDE;
115 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 113 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
116 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 114 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
117 virtual void ClearNetworkingHistorySince( 115 virtual void ClearNetworkingHistorySince(
118 base::Time time, 116 base::Time time,
119 const base::Closure& completion) OVERRIDE; 117 const base::Closure& completion) OVERRIDE;
120 virtual GURL GetHomePage() OVERRIDE; 118 virtual GURL GetHomePage() OVERRIDE;
121 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 119 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
122 virtual void SetExitType(ExitType exit_type) OVERRIDE; 120 virtual void SetExitType(ExitType exit_type) OVERRIDE;
123 virtual ExitType GetLastSessionExitType() OVERRIDE; 121 virtual ExitType GetLastSessionExitType() OVERRIDE;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these 210 // TODO(bauerb, mnissler): Once |prefs_| is a ProfileKeyedService, these
213 // should become proper ProfileKeyedServices as well. 211 // should become proper ProfileKeyedServices as well.
214 #if !defined(OS_CHROMEOS) 212 #if !defined(OS_CHROMEOS)
215 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_; 213 scoped_ptr<policy::UserCloudPolicyManager> cloud_policy_manager_;
216 #endif 214 #endif
217 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_; 215 scoped_ptr<policy::ManagedModePolicyProvider> managed_mode_policy_provider_;
218 #endif 216 #endif
219 scoped_ptr<policy::PolicyService> policy_service_; 217 scoped_ptr<policy::PolicyService> policy_service_;
220 218
221 // Keep |prefs_| on top for destruction order because |extension_prefs_|, 219 // Keep |prefs_| on top for destruction order because |extension_prefs_|,
222 // |net_pref_observer_|, |promo_resource_service_|, |io_data_| an others store 220 // |net_pref_observer_|, |io_data_| an others store pointers to |prefs_| and
223 // pointers to |prefs_| and shall be destructed first. 221 // shall be destructed first.
224 scoped_ptr<PrefServiceSyncable> prefs_; 222 scoped_ptr<PrefServiceSyncable> prefs_;
225 scoped_ptr<PrefServiceSyncable> otr_prefs_; 223 scoped_ptr<PrefServiceSyncable> otr_prefs_;
226 ProfileImplIOData::Handle io_data_; 224 ProfileImplIOData::Handle io_data_;
227 scoped_refptr<ExtensionSpecialStoragePolicy> 225 scoped_refptr<ExtensionSpecialStoragePolicy>
228 extension_special_storage_policy_; 226 extension_special_storage_policy_;
229 scoped_ptr<NetPrefObserver> net_pref_observer_; 227 scoped_ptr<NetPrefObserver> net_pref_observer_;
230 scoped_refptr<PromoResourceService> promo_resource_service_;
231 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 228 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
232 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 229 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
233 scoped_refptr<content::GeolocationPermissionContext> 230 scoped_refptr<content::GeolocationPermissionContext>
234 geolocation_permission_context_; 231 geolocation_permission_context_;
235 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_; 232 scoped_refptr<history::ShortcutsBackend> shortcuts_backend_;
236 233
237 // Exit type the last time the profile was opened. This is set only once from 234 // Exit type the last time the profile was opened. This is set only once from
238 // prefs. 235 // prefs.
239 ExitType last_session_exit_type_; 236 ExitType last_session_exit_type_;
240 237
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc} 272 // chrome/browser/profile/profile_keyed_dependency_manager.{h,cc}
276 273
277 Profile::Delegate* delegate_; 274 Profile::Delegate* delegate_;
278 275
279 chrome_browser_net::Predictor* predictor_; 276 chrome_browser_net::Predictor* predictor_;
280 277
281 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
282 }; 279 };
283 280
284 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698