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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 struct hash<Profile*> { | 423 struct hash<Profile*> { |
415 std::size_t operator()(Profile* const& p) const { | 424 std::size_t operator()(Profile* const& p) const { |
416 return reinterpret_cast<std::size_t>(p); | 425 return reinterpret_cast<std::size_t>(p); |
417 } | 426 } |
418 }; | 427 }; |
419 | 428 |
420 } // namespace BASE_HASH_NAMESPACE | 429 } // namespace BASE_HASH_NAMESPACE |
421 #endif | 430 #endif |
422 | 431 |
423 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 432 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |