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

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

Issue 9232011: sync: Make ProfileSyncService a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 11 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) 2011 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
11 #include <string> 11 #include <string>
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; 375 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0;
376 376
377 // Returns the user style sheet watcher. 377 // Returns the user style sheet watcher.
378 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; 378 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0;
379 379
380 // Returns the find bar state for this profile. The find bar state is lazily 380 // Returns the find bar state for this profile. The find bar state is lazily
381 // created the first time that this method is called. 381 // created the first time that this method is called.
382 virtual FindBarState* GetFindBarState() = 0; 382 virtual FindBarState* GetFindBarState() = 0;
383 383
384 // Returns true if this profile has a profile sync service. 384 // Returns true if this profile has a profile sync service.
385 virtual bool HasProfileSyncService() const = 0; 385 // TODO(tim): Bug 93922 - remove this.
386 virtual bool HasProfileSyncService() = 0;
386 387
387 // Returns true if the last time this profile was open it was exited cleanly. 388 // Returns true if the last time this profile was open it was exited cleanly.
388 virtual bool DidLastSessionExitCleanly() = 0; 389 virtual bool DidLastSessionExitCleanly() = 0;
389 390
390 // Returns the BookmarkModel, creating if not yet created. 391 // Returns the BookmarkModel, creating if not yet created.
391 virtual BookmarkModel* GetBookmarkModel() = 0; 392 virtual BookmarkModel* GetBookmarkModel() = 0;
392 393
393 // Returns the ProtocolHandlerRegistry, creating if not yet created. 394 // Returns the ProtocolHandlerRegistry, creating if not yet created.
394 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; 395 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0;
395 396
396 // Returns the Gaia Token Service, creating if not yet created. 397 // Returns the Gaia Token Service, creating if not yet created.
397 virtual TokenService* GetTokenService() = 0; 398 virtual TokenService* GetTokenService() = 0;
398 399
399 // Returns the ProfileSyncService, creating if not yet created. 400 // Returns the ProfileSyncService, creating if not yet created.
401 // TODO(tim): Bug 93922 - remove this.
400 virtual ProfileSyncService* GetProfileSyncService() = 0; 402 virtual ProfileSyncService* GetProfileSyncService() = 0;
401 403
402 // Return whether 2 profiles are the same. 2 profiles are the same if they 404 // Return whether 2 profiles are the same. 2 profiles are the same if they
403 // represent the same profile. This can happen if there is pointer equality 405 // represent the same profile. This can happen if there is pointer equality
404 // or if one profile is the incognito version of another profile (or vice 406 // or if one profile is the incognito version of another profile (or vice
405 // versa). 407 // versa).
406 virtual bool IsSameProfile(Profile* profile) = 0; 408 virtual bool IsSameProfile(Profile* profile) = 0;
407 409
408 // Returns the time the profile was started. This is not the time the profile 410 // Returns the time the profile was started. This is not the time the profile
409 // was created, rather it is the time the user started chrome and logged into 411 // was created, rather it is the time the user started chrome and logged into
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 struct hash<Profile*> { 571 struct hash<Profile*> {
570 std::size_t operator()(Profile* const& p) const { 572 std::size_t operator()(Profile* const& p) const {
571 return reinterpret_cast<std::size_t>(p); 573 return reinterpret_cast<std::size_t>(p);
572 } 574 }
573 }; 575 };
574 576
575 } // namespace __gnu_cxx 577 } // namespace __gnu_cxx
576 #endif 578 #endif
577 579
578 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 580 #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