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

Side by Side Diff: chrome/browser/chromeos/login/oauth2_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_OAUTH2_LOGIN_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // re-attempted. 92 // re-attempted.
93 bool RetryOnError(const GoogleServiceAuthError& error); 93 bool RetryOnError(const GoogleServiceAuthError& error);
94 94
95 // On successfuly OAuthLogin, starts token service token fetching process. 95 // On successfuly OAuthLogin, starts token service token fetching process.
96 void StartTokenService( 96 void StartTokenService(
97 const GaiaAuthConsumer::ClientLoginResult& gaia_credentials); 97 const GaiaAuthConsumer::ClientLoginResult& gaia_credentials);
98 98
99 // Stops listening for a new login refresh token. 99 // Stops listening for a new login refresh token.
100 void StopObservingRefreshToken(); 100 void StopObservingRefreshToken();
101 101
102 // Signaling methods for merge session start and end events. They ensure
103 // we fire these events exactly once per session restore.
104 void SignalMergeSessionStart();
105 void SignalMergeSessionEnd();
106
102 // Keeps the track if we have already reported OAuth2 token being loaded 107 // Keeps the track if we have already reported OAuth2 token being loaded
103 // by TokenService. 108 // by TokenService.
104 bool loading_reported_; 109 bool loading_reported_;
110
111 // Keeps the track if we have already signaled merge session end.
xiyuan 2013/09/04 20:12:08 nit: merge session end -> merge session start?
112 bool session_start_signaled_;
113
105 scoped_ptr<OAuth2TokenFetcher> oauth2_token_fetcher_; 114 scoped_ptr<OAuth2TokenFetcher> oauth2_token_fetcher_;
106 scoped_ptr<OAuth2LoginVerifier> login_verifier_; 115 scoped_ptr<OAuth2LoginVerifier> login_verifier_;
116
107 // OAuth2 refresh token. 117 // OAuth2 refresh token.
108 std::string refresh_token_; 118 std::string refresh_token_;
119
109 // Authorization code for fetching OAuth2 tokens. 120 // Authorization code for fetching OAuth2 tokens.
110 std::string auth_code_; 121 std::string auth_code_;
111 122
112 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager); 123 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager);
113 }; 124 };
114 125
115 } // namespace chromeos 126 } // namespace chromeos
116 127
117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_ 128 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/oauth2_login_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698