| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // Retrieves a pointer to the AutocompleteClassifier associated with this | 280 // Retrieves a pointer to the AutocompleteClassifier associated with this |
| 281 // profile. The AutocompleteClassifier is lazily created the first time that | 281 // profile. The AutocompleteClassifier is lazily created the first time that |
| 282 // this method is called. | 282 // this method is called. |
| 283 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0; | 283 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0; |
| 284 | 284 |
| 285 // Returns the ShortcutsBackend for this profile. This is owned by | 285 // Returns the ShortcutsBackend for this profile. This is owned by |
| 286 // the Profile and created on the first call. Callers that outlive the life of | 286 // the Profile and created on the first call. Callers that outlive the life of |
| 287 // this profile need to be sure they refcount the returned value. | 287 // this profile need to be sure they refcount the returned value. |
| 288 virtual history::ShortcutsBackend* GetShortcutsBackend() = 0; | 288 virtual history::ShortcutsBackend* GetShortcutsBackend() = 0; |
| 289 | 289 |
| 290 // Returns the WebDataService for this profile. This is owned by | |
| 291 // the Profile. Callers that outlive the life of this profile need to be | |
| 292 // sure they refcount the returned value. | |
| 293 // | |
| 294 // |access| defines what the caller plans to do with the service. See | |
| 295 // the ServiceAccessType definition above. | |
| 296 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; | |
| 297 | |
| 298 // Similar to GetWebDataService(), but won't create the web data service if it | |
| 299 // doesn't already exist. | |
| 300 virtual WebDataService* GetWebDataServiceWithoutCreating() = 0; | |
| 301 | 290 |
| 302 // Retrieves a pointer to the PrefService that manages the preferences | 291 // Retrieves a pointer to the PrefService that manages the preferences |
| 303 // for this user profile. The PrefService is lazily created the first | 292 // for this user profile. The PrefService is lazily created the first |
| 304 // time that this method is called. | 293 // time that this method is called. |
| 305 virtual PrefService* GetPrefs() = 0; | 294 virtual PrefService* GetPrefs() = 0; |
| 306 | 295 |
| 307 // Retrieves a pointer to the PrefService that manages the preferences | 296 // Retrieves a pointer to the PrefService that manages the preferences |
| 308 // for OffTheRecord Profiles. This PrefService is lazily created the first | 297 // for OffTheRecord Profiles. This PrefService is lazily created the first |
| 309 // time that this method is called. | 298 // time that this method is called. |
| 310 virtual PrefService* GetOffTheRecordPrefs() = 0; | 299 virtual PrefService* GetOffTheRecordPrefs() = 0; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 struct hash<Profile*> { | 504 struct hash<Profile*> { |
| 516 std::size_t operator()(Profile* const& p) const { | 505 std::size_t operator()(Profile* const& p) const { |
| 517 return reinterpret_cast<std::size_t>(p); | 506 return reinterpret_cast<std::size_t>(p); |
| 518 } | 507 } |
| 519 }; | 508 }; |
| 520 | 509 |
| 521 } // namespace BASE_HASH_NAMESPACE | 510 } // namespace BASE_HASH_NAMESPACE |
| 522 #endif | 511 #endif |
| 523 | 512 |
| 524 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 513 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |