| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 namespace android { | 30 namespace android { |
| 31 class TabContentsProvider; | 31 class TabContentsProvider; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace base { | 34 namespace base { |
| 35 class SequencedTaskRunner; | 35 class SequencedTaskRunner; |
| 36 class Time; | 36 class Time; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace chrome { |
| 40 class ChromeZoomLevelPrefs; |
| 41 } |
| 42 |
| 39 namespace chrome_browser_net { | 43 namespace chrome_browser_net { |
| 40 class Predictor; | 44 class Predictor; |
| 41 } | 45 } |
| 42 | 46 |
| 43 namespace chromeos { | 47 namespace chromeos { |
| 44 class LibCrosServiceLibraryImpl; | 48 class LibCrosServiceLibraryImpl; |
| 45 class ResetDefaultProxyConfigServiceTask; | 49 class ResetDefaultProxyConfigServiceTask; |
| 46 } | 50 } |
| 47 | 51 |
| 48 namespace content { | 52 namespace content { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | 217 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; |
| 214 | 218 |
| 215 // Accessor. The instance is created upon first access. | 219 // Accessor. The instance is created upon first access. |
| 216 virtual ExtensionSpecialStoragePolicy* | 220 virtual ExtensionSpecialStoragePolicy* |
| 217 GetExtensionSpecialStoragePolicy() = 0; | 221 GetExtensionSpecialStoragePolicy() = 0; |
| 218 | 222 |
| 219 // Retrieves a pointer to the PrefService that manages the | 223 // Retrieves a pointer to the PrefService that manages the |
| 220 // preferences for this user profile. | 224 // preferences for this user profile. |
| 221 virtual PrefService* GetPrefs() = 0; | 225 virtual PrefService* GetPrefs() = 0; |
| 222 | 226 |
| 227 // Retrieves a pointer to the PrefService that manages the default zoom |
| 228 // level and the per-host zoom levels for this user profile. |
| 229 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition. |
| 230 virtual chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs(); |
| 231 |
| 223 // Retrieves a pointer to the PrefService that manages the preferences | 232 // Retrieves a pointer to the PrefService that manages the preferences |
| 224 // for OffTheRecord Profiles. This PrefService is lazily created the first | 233 // for OffTheRecord Profiles. This PrefService is lazily created the first |
| 225 // time that this method is called. | 234 // time that this method is called. |
| 226 virtual PrefService* GetOffTheRecordPrefs() = 0; | 235 virtual PrefService* GetOffTheRecordPrefs() = 0; |
| 227 | 236 |
| 228 // Returns the main request context. | 237 // Returns the main request context. |
| 229 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 238 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
| 230 | 239 |
| 231 // Returns the request context used for extension-related requests. This | 240 // Returns the request context used for extension-related requests. This |
| 232 // is only used for a separate cookie store currently. | 241 // is only used for a separate cookie store currently. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 410 |
| 402 DISALLOW_COPY_AND_ASSIGN(Profile); | 411 DISALLOW_COPY_AND_ASSIGN(Profile); |
| 403 }; | 412 }; |
| 404 | 413 |
| 405 // The comparator for profile pointers as key in a map. | 414 // The comparator for profile pointers as key in a map. |
| 406 struct ProfileCompare { | 415 struct ProfileCompare { |
| 407 bool operator()(Profile* a, Profile* b) const; | 416 bool operator()(Profile* a, Profile* b) const; |
| 408 }; | 417 }; |
| 409 | 418 |
| 410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 419 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |