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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | 215 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; |
212 | 216 |
213 // Accessor. The instance is created upon first access. | 217 // Accessor. The instance is created upon first access. |
214 virtual ExtensionSpecialStoragePolicy* | 218 virtual ExtensionSpecialStoragePolicy* |
215 GetExtensionSpecialStoragePolicy() = 0; | 219 GetExtensionSpecialStoragePolicy() = 0; |
216 | 220 |
217 // Retrieves a pointer to the PrefService that manages the | 221 // Retrieves a pointer to the PrefService that manages the |
218 // preferences for this user profile. | 222 // preferences for this user profile. |
219 virtual PrefService* GetPrefs() = 0; | 223 virtual PrefService* GetPrefs() = 0; |
220 | 224 |
| 225 // Retrieves a pointer to the PrefService that manages the default zoom |
| 226 // level and the per-host zoom levels for this user profile. |
| 227 // TODO(wjmaclean): Remove this when HostZoomMap migrates to StoragePartition. |
| 228 virtual chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs(); |
| 229 |
221 // Retrieves a pointer to the PrefService that manages the preferences | 230 // Retrieves a pointer to the PrefService that manages the preferences |
222 // for OffTheRecord Profiles. This PrefService is lazily created the first | 231 // for OffTheRecord Profiles. This PrefService is lazily created the first |
223 // time that this method is called. | 232 // time that this method is called. |
224 virtual PrefService* GetOffTheRecordPrefs() = 0; | 233 virtual PrefService* GetOffTheRecordPrefs() = 0; |
225 | 234 |
226 // Returns the main request context. | 235 // Returns the main request context. |
227 virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 236 virtual net::URLRequestContextGetter* GetRequestContext() = 0; |
228 | 237 |
229 // Returns the request context used for extension-related requests. This | 238 // Returns the request context used for extension-related requests. This |
230 // is only used for a separate cookie store currently. | 239 // is only used for a separate cookie store currently. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 struct hash<Profile*> { | 421 struct hash<Profile*> { |
413 std::size_t operator()(Profile* const& p) const { | 422 std::size_t operator()(Profile* const& p) const { |
414 return reinterpret_cast<std::size_t>(p); | 423 return reinterpret_cast<std::size_t>(p); |
415 } | 424 } |
416 }; | 425 }; |
417 | 426 |
418 } // namespace BASE_HASH_NAMESPACE | 427 } // namespace BASE_HASH_NAMESPACE |
419 #endif | 428 #endif |
420 | 429 |
421 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 430 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |