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

Side by Side Diff: chrome/browser/chromeos/login/oauth_login_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 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 27 matching lines...) Expand all
38 // Restore session from OAuth2 refresh token passed via command line. 38 // Restore session from OAuth2 refresh token passed via command line.
39 RESTORE_FROM_PASSED_OAUTH2_REFRESH_TOKEN, 39 RESTORE_FROM_PASSED_OAUTH2_REFRESH_TOKEN,
40 // Restore session from authentication code passed via command line. 40 // Restore session from authentication code passed via command line.
41 RESTORE_FROM_AUTH_CODE, 41 RESTORE_FROM_AUTH_CODE,
42 }; 42 };
43 43
44 class Delegate { 44 class Delegate {
45 public: 45 public:
46 virtual ~Delegate() {} 46 virtual ~Delegate() {}
47 47
48 // Raised when merge session process starts.
49 virtual void OnStartMergeSession(Profile* user_profile) = 0;
50
48 // Raised when merge session is completed. 51 // Raised when merge session is completed.
49 virtual void OnCompletedMergeSession() = 0; 52 virtual void OnCompletedMergeSession() = 0;
50 53
51 // Raised when cookie jar authentication is successfully completed. 54 // Raised when cookie jar authentication is successfully completed.
52 virtual void OnCompletedAuthentication(Profile* user_profile) = 0; 55 virtual void OnCompletedAuthentication(Profile* user_profile) = 0;
53 56
54 // Raised when stored OAuth(1|2) tokens are found and authentication 57 // Raised when stored OAuth(1|2) tokens are found and authentication
55 // profile is no longer needed. 58 // profile is no longer needed.
56 virtual void OnFoundStoredTokens() = 0; 59 virtual void OnFoundStoredTokens() = 0;
57 }; 60 };
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 scoped_refptr<net::URLRequestContextGetter> auth_request_context_; 97 scoped_refptr<net::URLRequestContextGetter> auth_request_context_;
95 SessionRestoreStrategy restore_strategy_; 98 SessionRestoreStrategy restore_strategy_;
96 SessionRestoreState state_; 99 SessionRestoreState state_;
97 100
98 DISALLOW_COPY_AND_ASSIGN(OAuthLoginManager); 101 DISALLOW_COPY_AND_ASSIGN(OAuthLoginManager);
99 }; 102 };
100 103
101 } // namespace chromeos 104 } // namespace chromeos
102 105
103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_ 106 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698