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

Side by Side Diff: chrome/browser/chromeos/login/oauth_login_manager.h

Issue 12256046: Added interstitial page for merge session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 14 matching lines...) Expand all
25 // stored OAuth tokens and populate cookie jar with GAIA credentials. 25 // stored OAuth tokens and populate cookie jar with GAIA credentials.
26 SESSION_RESTORE_IN_PROGRESS, 26 SESSION_RESTORE_IN_PROGRESS,
27 // Session restore is completed. 27 // Session restore is completed.
28 SESSION_RESTORE_DONE, 28 SESSION_RESTORE_DONE,
29 }; 29 };
30 30
31 class Delegate { 31 class Delegate {
32 public: 32 public:
33 virtual ~Delegate() {} 33 virtual ~Delegate() {}
34 34
35 // Raised when merge session is completed.
36 virtual void OnCompletedMergeSession() = 0;
37
35 // Raised when cookie jar authentication is successfully completed. 38 // Raised when cookie jar authentication is successfully completed.
36 virtual void OnCompletedAuthentication(Profile* user_profile) = 0; 39 virtual void OnCompletedAuthentication(Profile* user_profile) = 0;
37 40
38 // Raised when stored OAuth(1|2) tokens are found and authentication 41 // Raised when stored OAuth(1|2) tokens are found and authentication
39 // profile is no longer needed. 42 // profile is no longer needed.
40 virtual void OnFoundStoredTokens() = 0; 43 virtual void OnFoundStoredTokens() = 0;
41 44
42 // Raised when policy tokens are retrieved. 45 // Raised when policy tokens are retrieved.
43 virtual void OnRestoredPolicyTokens() {} 46 virtual void OnRestoredPolicyTokens() {}
44 }; 47 };
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 scoped_refptr<net::URLRequestContextGetter> auth_request_context_; 82 scoped_refptr<net::URLRequestContextGetter> auth_request_context_;
80 bool restore_from_auth_cookies_; 83 bool restore_from_auth_cookies_;
81 SessionRestoreState state_; 84 SessionRestoreState state_;
82 85
83 DISALLOW_COPY_AND_ASSIGN(OAuthLoginManager); 86 DISALLOW_COPY_AND_ASSIGN(OAuthLoginManager);
84 }; 87 };
85 88
86 } // namespace chromeos 89 } // namespace chromeos
87 90
88 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_ 91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698