Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(839)

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 9834056: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload rebase Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Retrieves a pointer to the AutocompleteClassifier associated with this 275 // Retrieves a pointer to the AutocompleteClassifier associated with this
276 // profile. The AutocompleteClassifier is lazily created the first time that 276 // profile. The AutocompleteClassifier is lazily created the first time that
277 // this method is called. 277 // this method is called.
278 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0; 278 virtual AutocompleteClassifier* GetAutocompleteClassifier() = 0;
279 279
280 // Returns the ShortcutsBackend for this profile. This is owned by 280 // Returns the ShortcutsBackend for this profile. This is owned by
281 // the Profile and created on the first call. Callers that outlive the life of 281 // the Profile and created on the first call. Callers that outlive the life of
282 // this profile need to be sure they refcount the returned value. 282 // this profile need to be sure they refcount the returned value.
283 virtual history::ShortcutsBackend* GetShortcutsBackend() = 0; 283 virtual history::ShortcutsBackend* GetShortcutsBackend() = 0;
284 284
285 // Returns the WebDataService for this profile. This is owned by
286 // the Profile. Callers that outlive the life of this profile need to be
287 // sure they refcount the returned value.
288 //
289 // |access| defines what the caller plans to do with the service. See
290 // the ServiceAccessType definition above.
291 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0;
292
293 // Similar to GetWebDataService(), but won't create the web data service if it
294 // doesn't already exist.
295 virtual WebDataService* GetWebDataServiceWithoutCreating() = 0;
296 285
297 // Retrieves a pointer to the PrefService that manages the preferences 286 // Retrieves a pointer to the PrefService that manages the preferences
298 // for this user profile. The PrefService is lazily created the first 287 // for this user profile. The PrefService is lazily created the first
299 // time that this method is called. 288 // time that this method is called.
300 virtual PrefService* GetPrefs() = 0; 289 virtual PrefService* GetPrefs() = 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 OffTheRecord Profiles. This PrefService is lazily created the first 292 // for OffTheRecord Profiles. This PrefService is lazily created the first
304 // time that this method is called. 293 // time that this method is called.
305 virtual PrefService* GetOffTheRecordPrefs() = 0; 294 virtual PrefService* GetOffTheRecordPrefs() = 0;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 struct hash<Profile*> { 469 struct hash<Profile*> {
481 std::size_t operator()(Profile* const& p) const { 470 std::size_t operator()(Profile* const& p) const {
482 return reinterpret_cast<std::size_t>(p); 471 return reinterpret_cast<std::size_t>(p);
483 } 472 }
484 }; 473 };
485 474
486 } // namespace BASE_HASH_NAMESPACE 475 } // namespace BASE_HASH_NAMESPACE
487 #endif 476 #endif
488 477
489 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 478 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698