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

Unified Diff: chrome/browser/chromeos/login/user_manager.h

Issue 23678007: OAuth2LoginManager+MergeSessionThrottle hardening, multi-profle support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/user_manager.h
diff --git a/chrome/browser/chromeos/login/user_manager.h b/chrome/browser/chromeos/login/user_manager.h
index 4bd8b85c2e7ff4236baeb6e1f2af16e708ab68bd..f3b51c1452407f2da524d80d5d60951579bb194d 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -24,9 +24,11 @@ class UserManager {
// Status of merge sessions process which is responsible for exchanging
// user OAuth2 refresh token for GAIA cookies.
enum MergeSessionState {
- // Session merge hasn't started yet.
- MERGE_STATUS_NOT_STARTED,
- // Session merge is in process.
+ // Session merge can't start yet until we get the refresh token.
+ MERGE_STATUS_UNINITILIZED,
+ // Session merge fetching hasn't started yet.
+ MERGE_STATUS_PREPARING,
+ // Session merge related requests to GAIA are in progress.
MERGE_STATUS_IN_PROCESS,
// Session merge is completed.
MERGE_STATUS_DONE,
@@ -301,6 +303,10 @@ class UserManager {
// or restart after crash.
virtual bool IsSessionStarted() const = 0;
+ // Returns session duration in seconds. If the session hasn't started yet,
+ // the function returns -1.
+ virtual int64 GetSessionDurationInSeconds() const = 0;
+
// Returns true iff browser has been restarted after crash and UserManager
// finished restoring user sessions.
virtual bool UserSessionsRestored() const = 0;

Powered by Google App Engine
This is Rietveld 408576698