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

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

Issue 6292017: Extended: Add "system" URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 9 #pragma once
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/timer.h" 14 #include "base/timer.h"
15 #include "chrome/browser/prefs/pref_change_registrar.h" 15 #include "chrome/browser/prefs/pref_change_registrar.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/profiles/profile_impl_io_data.h" 17 #include "chrome/browser/profiles/profile_impl_io_data.h"
18 #include "chrome/browser/spellcheck_host_observer.h" 18 #include "chrome/browser/spellcheck_host_observer.h"
19 #include "chrome/common/notification_observer.h" 19 #include "chrome/common/notification_observer.h"
20 #include "chrome/common/notification_registrar.h" 20 #include "chrome/common/notification_registrar.h"
21 21
22 class BackgroundModeManager; 22 class BackgroundModeManager;
23 class ExtensionPrefs; 23 class ExtensionPrefs;
24 class ExtensionPrefValueMap; 24 class ExtensionPrefValueMap;
25 class PrefService; 25 class PrefService;
26 26
27 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
28 namespace chromeos { 28 namespace chromeos {
29 class Preferences; 29 class Preferences;
30 class EnterpriseExtensionObserver;
Mattias Nissler (ping if slow) 2011/02/22 09:58:05 What's this?
battre 2011/03/08 17:38:58 Needed to compile.
30 } 31 }
31 #endif 32 #endif
32 33
33 class NetPrefObserver; 34 class NetPrefObserver;
34 35
35 // The default profile implementation. 36 // The default profile implementation.
36 class ProfileImpl : public Profile, 37 class ProfileImpl : public Profile,
37 public SpellCheckHostObserver, 38 public SpellCheckHostObserver,
38 public NotificationObserver { 39 public NotificationObserver {
39 public: 40 public:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void InitCloudPrintProxyService(); 129 void InitCloudPrintProxyService();
129 virtual ChromeBlobStorageContext* GetBlobStorageContext(); 130 virtual ChromeBlobStorageContext* GetBlobStorageContext();
130 virtual ExtensionInfoMap* GetExtensionInfoMap(); 131 virtual ExtensionInfoMap* GetExtensionInfoMap();
131 virtual PromoCounter* GetInstantPromoCounter(); 132 virtual PromoCounter* GetInstantPromoCounter();
132 virtual BrowserSignin* GetBrowserSignin(); 133 virtual BrowserSignin* GetBrowserSignin();
133 virtual policy::ProfilePolicyContext* GetPolicyContext(); 134 virtual policy::ProfilePolicyContext* GetPolicyContext();
134 virtual ChromeURLDataManager* GetChromeURLDataManager(); 135 virtual ChromeURLDataManager* GetChromeURLDataManager();
135 136
136 #if defined(OS_CHROMEOS) 137 #if defined(OS_CHROMEOS)
137 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia); 138 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia);
138 virtual chromeos::ProxyConfigServiceImpl* GetChromeOSProxyConfigServiceImpl();
139 virtual void SetupChromeOSEnterpriseExtensionObserver(); 139 virtual void SetupChromeOSEnterpriseExtensionObserver();
140 virtual void InitChromeOSPreferences(); 140 virtual void InitChromeOSPreferences();
141 #endif // defined(OS_CHROMEOS) 141 #endif // defined(OS_CHROMEOS)
142 142
143 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); 143 virtual PrefProxyConfigTracker* GetProxyConfigTracker();
144 virtual prerender::PrerenderManager* GetPrerenderManager(); 144 virtual prerender::PrerenderManager* GetPrerenderManager();
145 145
146 // NotificationObserver implementation. 146 // NotificationObserver implementation.
147 virtual void Observe(NotificationType type, 147 virtual void Observe(NotificationType type,
148 const NotificationSource& source, 148 const NotificationSource& source,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 291 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
292 292
293 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 293 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
294 294
295 scoped_refptr<ExtensionInfoMap> extension_info_map_; 295 scoped_refptr<ExtensionInfoMap> extension_info_map_;
296 296
297 #if defined(OS_CHROMEOS) 297 #if defined(OS_CHROMEOS)
298 scoped_ptr<chromeos::Preferences> chromeos_preferences_; 298 scoped_ptr<chromeos::Preferences> chromeos_preferences_;
299 299
300 scoped_refptr<chromeos::ProxyConfigServiceImpl>
301 chromeos_proxy_config_service_impl_;
302
303 scoped_ptr<chromeos::EnterpriseExtensionObserver> 300 scoped_ptr<chromeos::EnterpriseExtensionObserver>
304 chromeos_enterprise_extension_observer_; 301 chromeos_enterprise_extension_observer_;
305 #endif 302 #endif
306 303
307 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 304 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
308 305
309 scoped_refptr<prerender::PrerenderManager> prerender_manager_; 306 scoped_refptr<prerender::PrerenderManager> prerender_manager_;
310 307
311 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 308 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
312 309
313 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 310 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
314 }; 311 };
315 312
316 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 313 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698