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

Side by Side Diff: google_apis/gaia/oauth2_api_call_flow.h

Issue 625293003: replace OVERRIDE and FINAL with override and final in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase on master 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ 5 #ifndef GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_
6 #define GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ 6 #define GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const std::string& access_token, 47 const std::string& access_token,
48 const std::vector<std::string>& scopes); 48 const std::vector<std::string>& scopes);
49 49
50 virtual ~OAuth2ApiCallFlow(); 50 virtual ~OAuth2ApiCallFlow();
51 51
52 // Start the flow. 52 // Start the flow.
53 virtual void Start(); 53 virtual void Start();
54 54
55 // OAuth2AccessTokenFetcher implementation. 55 // OAuth2AccessTokenFetcher implementation.
56 virtual void OnGetTokenSuccess(const std::string& access_token, 56 virtual void OnGetTokenSuccess(const std::string& access_token,
57 const base::Time& expiration_time) OVERRIDE; 57 const base::Time& expiration_time) override;
58 virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) OVERRIDE; 58 virtual void OnGetTokenFailure(const GoogleServiceAuthError& error) override;
59 59
60 // net::URLFetcherDelegate implementation. 60 // net::URLFetcherDelegate implementation.
61 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 61 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
62 62
63 protected: 63 protected:
64 // Template methods for sub-classes. 64 // Template methods for sub-classes.
65 65
66 // Methods to help create HTTP request. 66 // Methods to help create HTTP request.
67 virtual GURL CreateApiCallUrl() = 0; 67 virtual GURL CreateApiCallUrl() = 0;
68 virtual std::string CreateApiCallBody() = 0; 68 virtual std::string CreateApiCallBody() = 0;
69 virtual std::string CreateApiCallBodyContentType(); 69 virtual std::string CreateApiCallBodyContentType();
70 70
71 // Sub-classes can expose an appropriate observer interface by implementing 71 // Sub-classes can expose an appropriate observer interface by implementing
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Whether we have already tried minting an access token once. 120 // Whether we have already tried minting an access token once.
121 bool tried_mint_access_token_; 121 bool tried_mint_access_token_;
122 122
123 scoped_ptr<net::URLFetcher> url_fetcher_; 123 scoped_ptr<net::URLFetcher> url_fetcher_;
124 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_; 124 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow); 126 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow);
127 }; 127 };
128 128
129 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ 129 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_
OLDNEW
« no previous file with comments | « google_apis/gaia/oauth2_access_token_fetcher_impl.h ('k') | google_apis/gaia/oauth2_mint_token_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698