| 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Retrieves a pointer to the AutocompleteClassifier associated with this | 269 // Retrieves a pointer to the AutocompleteClassifier associated with this |
| 270 // profile. The AutocompleteClassifier is lazily created the first time that | 270 // profile. The AutocompleteClassifier is lazily created the first time that |
| 271 // this method is called. | 271 // this method is called. |
| 272 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0; | 272 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0; |
| 273 | 273 |
| 274 // Returns the ShortcutsBackend for this profile. This is owned by | 274 // Returns the ShortcutsBackend for this profile. This is owned by |
| 275 // the Profile and created on the first call. Callers that outlive the life of | 275 // the Profile and created on the first call. Callers that outlive the life of |
| 276 // this profile need to be sure they refcount the returned value. | 276 // this profile need to be sure they refcount the returned value. |
| 277 virtual history::ShortcutsBackend* GetShortcutsBackend() = 0; | 277 virtual history::ShortcutsBackend* GetShortcutsBackend() = 0; |
| 278 | 278 |
| 279 // Returns the WebDataService for this profile. This is owned by | |
| 280 // the Profile. Callers that outlive the life of this profile need to be | |
| 281 // sure they refcount the returned value. | |
| 282 // | |
| 283 // |access| defines what the caller plans to do with the service. See | |
| 284 // the ServiceAccessType definition above. | |
| 285 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; | |
| 286 | |
| 287 // Similar to GetWebDataService(), but won't create the web data service if it | |
| 288 // doesn't already exist. | |
| 289 virtual WebDataService* GetWebDataServiceWithoutCreating() = 0; | |
| 290 | 279 |
| 291 // Retrieves a pointer to the PrefService that manages the preferences | 280 // Retrieves a pointer to the PrefService that manages the preferences |
| 292 // for this user profile. The PrefService is lazily created the first | 281 // for this user profile. The PrefService is lazily created the first |
| 293 // time that this method is called. | 282 // time that this method is called. |
| 294 virtual PrefService* GetPrefs() = 0; | 283 virtual PrefService* GetPrefs() = 0; |
| 295 | 284 |
| 296 // Retrieves a pointer to the PrefService that manages the preferences | 285 // Retrieves a pointer to the PrefService that manages the preferences |
| 297 // for OffTheRecord Profiles. This PrefService is lazily created the first | 286 // for OffTheRecord Profiles. This PrefService is lazily created the first |
| 298 // time that this method is called. | 287 // time that this method is called. |
| 299 virtual PrefService* GetOffTheRecordPrefs() = 0; | 288 virtual PrefService* GetOffTheRecordPrefs() = 0; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 struct hash<Profile*> { | 460 struct hash<Profile*> { |
| 472 std::size_t operator()(Profile* const& p) const { | 461 std::size_t operator()(Profile* const& p) const { |
| 473 return reinterpret_cast<std::size_t>(p); | 462 return reinterpret_cast<std::size_t>(p); |
| 474 } | 463 } |
| 475 }; | 464 }; |
| 476 | 465 |
| 477 } // namespace BASE_HASH_NAMESPACE | 466 } // namespace BASE_HASH_NAMESPACE |
| 478 #endif | 467 #endif |
| 479 | 468 |
| 480 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 469 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |