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

Side by Side Diff: chrome/browser/chromeos/login/signin/oauth2_token_fetcher.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SIGNIN_OAUTH2_TOKEN_FETCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_TOKEN_FETCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_TOKEN_FETCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_TOKEN_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Decides how to proceed on GAIA |error|. If the error looks temporary, 46 // Decides how to proceed on GAIA |error|. If the error looks temporary,
47 // retries |task| until max retry count is reached. 47 // retries |task| until max retry count is reached.
48 // If retry count runs out, or error condition is unrecoverable, it runs 48 // If retry count runs out, or error condition is unrecoverable, it runs
49 // |error_handler|. 49 // |error_handler|.
50 void RetryOnError(const GoogleServiceAuthError& error, 50 void RetryOnError(const GoogleServiceAuthError& error,
51 const base::Closure& task, 51 const base::Closure& task,
52 const base::Closure& error_handler); 52 const base::Closure& error_handler);
53 53
54 // GaiaAuthConsumer overrides. 54 // GaiaAuthConsumer overrides.
55 virtual void OnClientOAuthSuccess( 55 virtual void OnClientOAuthSuccess(
56 const GaiaAuthConsumer::ClientOAuthResult& result) OVERRIDE; 56 const GaiaAuthConsumer::ClientOAuthResult& result) override;
57 virtual void OnClientOAuthFailure( 57 virtual void OnClientOAuthFailure(
58 const GoogleServiceAuthError& error) OVERRIDE; 58 const GoogleServiceAuthError& error) override;
59 59
60 OAuth2TokenFetcher::Delegate* delegate_; 60 OAuth2TokenFetcher::Delegate* delegate_;
61 GaiaAuthConsumer::ClientOAuthResult oauth_tokens_; 61 GaiaAuthConsumer::ClientOAuthResult oauth_tokens_;
62 GaiaAuthFetcher auth_fetcher_; 62 GaiaAuthFetcher auth_fetcher_;
63 63
64 // The retry counter. Increment this only when failure happened. 64 // The retry counter. Increment this only when failure happened.
65 int retry_count_; 65 int retry_count_;
66 std::string session_index_; 66 std::string session_index_;
67 std::string signin_scoped_device_id_; 67 std::string signin_scoped_device_id_;
68 std::string auth_code_; 68 std::string auth_code_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenFetcher); 70 DISALLOW_COPY_AND_ASSIGN(OAuth2TokenFetcher);
71 }; 71 };
72 72
73 } // namespace chromeos 73 } // namespace chromeos
74 74
75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_TOKEN_FETCHER_H_ 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_TOKEN_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698