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

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

Issue 2860683002: WIP: Pref service: use the incognito support from Chrome
Patch Set: Rebase Created 3 years, 7 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
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_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 namespace content { 36 namespace content {
37 class WebUI; 37 class WebUI;
38 } 38 }
39 39
40 namespace net { 40 namespace net {
41 class SSLConfigService; 41 class SSLConfigService;
42 } 42 }
43 43
44 namespace sync_preferences {
45 class PrefServiceSyncable;
46 }
47
44 namespace user_prefs { 48 namespace user_prefs {
45 class PrefRegistrySyncable; 49 class PrefRegistrySyncable;
46 } 50 }
47 51
48 // Instead of adding more members to Profile, consider creating a 52 // Instead of adding more members to Profile, consider creating a
49 // KeyedService. See 53 // KeyedService. See
50 // http://dev.chromium.org/developers/design-documents/profile-architecture 54 // http://dev.chromium.org/developers/design-documents/profile-architecture
51 class Profile : public content::BrowserContext { 55 class Profile : public content::BrowserContext {
52 public: 56 public:
53 enum CreateStatus { 57 enum CreateStatus {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Retrieves a pointer to the PrefService that manages the default zoom 183 // Retrieves a pointer to the PrefService that manages the default zoom
180 // level and the per-host zoom levels for this user profile. 184 // level and the per-host zoom levels for this user profile.
181 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition. 185 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition.
182 virtual ChromeZoomLevelPrefs* GetZoomLevelPrefs(); 186 virtual ChromeZoomLevelPrefs* GetZoomLevelPrefs();
183 187
184 // Retrieves a pointer to the PrefService that manages the preferences 188 // Retrieves a pointer to the PrefService that manages the preferences
185 // for OffTheRecord Profiles. This PrefService is lazily created the first 189 // for OffTheRecord Profiles. This PrefService is lazily created the first
186 // time that this method is called. 190 // time that this method is called.
187 virtual PrefService* GetOffTheRecordPrefs() = 0; 191 virtual PrefService* GetOffTheRecordPrefs() = 0;
188 192
193 virtual sync_preferences::PrefServiceSyncable* CreateOffTheRecordPrefs(
194 service_manager::Connector* otr_connector);
195
189 // Returns the main request context. 196 // Returns the main request context.
190 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 197 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
191 198
192 // Returns the request context used for extension-related requests. This 199 // Returns the request context used for extension-related requests. This
193 // is only used for a separate cookie store currently. 200 // is only used for a separate cookie store currently.
194 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0; 201 virtual net::URLRequestContextGetter* GetRequestContextForExtensions() = 0;
195 202
196 // Returns the SSLConfigService for this profile. 203 // Returns the SSLConfigService for this profile.
197 virtual net::SSLConfigService* GetSSLConfigService() = 0; 204 virtual net::SSLConfigService* GetSSLConfigService() = 0;
198 205
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 365
359 DISALLOW_COPY_AND_ASSIGN(Profile); 366 DISALLOW_COPY_AND_ASSIGN(Profile);
360 }; 367 };
361 368
362 // The comparator for profile pointers as key in a map. 369 // The comparator for profile pointers as key in a map.
363 struct ProfileCompare { 370 struct ProfileCompare {
364 bool operator()(Profile* a, Profile* b) const; 371 bool operator()(Profile* a, Profile* b) const;
365 }; 372 };
366 373
367 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 374 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698