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

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

Issue 70633004: /OAuthLogin requests should use ChannelID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/oauth2_login_verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VERIFIER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Decides how to proceed on GAIA |error|. If the error looks temporary, 92 // Decides how to proceed on GAIA |error|. If the error looks temporary,
93 // retries |task| after certain delay until max retry count is reached. 93 // retries |task| after certain delay until max retry count is reached.
94 void RetryOnError(const char* operation_id, 94 void RetryOnError(const char* operation_id,
95 const GoogleServiceAuthError& error, 95 const GoogleServiceAuthError& error,
96 const base::Closure& task_to_retry, 96 const base::Closure& task_to_retry,
97 const ErrorHandler& error_handler); 97 const ErrorHandler& error_handler);
98 98
99 OAuth2LoginVerifier::Delegate* delegate_; 99 OAuth2LoginVerifier::Delegate* delegate_;
100 scoped_refptr<net::URLRequestContextGetter> system_request_context_; 100 scoped_refptr<net::URLRequestContextGetter> system_request_context_;
101 scoped_refptr<net::URLRequestContextGetter> user_request_context_; 101 scoped_refptr<net::URLRequestContextGetter> user_request_context_;
102 scoped_ptr<GaiaAuthFetcher> gaia_system_fetcher_;
103 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; 102 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_;
104 std::string access_token_; 103 std::string access_token_;
105 std::string gaia_token_; 104 std::string gaia_token_;
106 scoped_ptr<OAuth2TokenService::Request> login_token_request_; 105 scoped_ptr<OAuth2TokenService::Request> login_token_request_;
107 // The retry counter. Increment this only when failure happened. 106 // The retry counter. Increment this only when failure happened.
108 int retry_count_; 107 int retry_count_;
109 108
110 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginVerifier); 109 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginVerifier);
111 }; 110 };
112 111
113 } // namespace chromeos 112 } // namespace chromeos
114 113
115 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_ 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/oauth2_login_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698