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

Side by Side Diff: chrome/service/cloud_print/cloud_print_auth.h

Issue 628083002: Replacing the OVERRIDE with override and FINAL with final in chrome/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_connector.h » ('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) 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 CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void AuthenticateWithRobotToken(const std::string& robot_oauth_refresh_token, 51 void AuthenticateWithRobotToken(const std::string& robot_oauth_refresh_token,
52 const std::string& robot_email); 52 const std::string& robot_email);
53 void AuthenticateWithRobotAuthCode(const std::string& robot_oauth_auth_code, 53 void AuthenticateWithRobotAuthCode(const std::string& robot_oauth_auth_code,
54 const std::string& robot_email); 54 const std::string& robot_email);
55 55
56 void RefreshAccessToken(); 56 void RefreshAccessToken();
57 57
58 // gaia::GaiaOAuthClient::Delegate implementation. 58 // gaia::GaiaOAuthClient::Delegate implementation.
59 virtual void OnGetTokensResponse(const std::string& refresh_token, 59 virtual void OnGetTokensResponse(const std::string& refresh_token,
60 const std::string& access_token, 60 const std::string& access_token,
61 int expires_in_seconds) OVERRIDE; 61 int expires_in_seconds) override;
62 virtual void OnRefreshTokenResponse(const std::string& access_token, 62 virtual void OnRefreshTokenResponse(const std::string& access_token,
63 int expires_in_seconds) OVERRIDE; 63 int expires_in_seconds) override;
64 virtual void OnOAuthError() OVERRIDE; 64 virtual void OnOAuthError() override;
65 virtual void OnNetworkError(int response_code) OVERRIDE; 65 virtual void OnNetworkError(int response_code) override;
66 66
67 // CloudPrintURLFetcher::Delegate implementation. 67 // CloudPrintURLFetcher::Delegate implementation.
68 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( 68 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
69 const net::URLFetcher* source, 69 const net::URLFetcher* source,
70 const GURL& url, 70 const GURL& url,
71 base::DictionaryValue* json_data, 71 base::DictionaryValue* json_data,
72 bool succeeded) OVERRIDE; 72 bool succeeded) override;
73 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; 73 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() override;
74 virtual std::string GetAuthHeader() OVERRIDE; 74 virtual std::string GetAuthHeader() override;
75 75
76 private: 76 private:
77 friend class base::RefCountedThreadSafe<CloudPrintAuth>; 77 friend class base::RefCountedThreadSafe<CloudPrintAuth>;
78 virtual ~CloudPrintAuth(); 78 virtual ~CloudPrintAuth();
79 79
80 Client* client_; 80 Client* client_;
81 gaia::OAuthClientInfo oauth_client_info_; 81 gaia::OAuthClientInfo oauth_client_info_;
82 scoped_ptr<gaia::GaiaOAuthClient> oauth_client_; 82 scoped_ptr<gaia::GaiaOAuthClient> oauth_client_;
83 83
84 // The CloudPrintURLFetcher instance for the current request. 84 // The CloudPrintURLFetcher instance for the current request.
(...skipping 15 matching lines...) Expand all
100 // get the robot account. 100 // get the robot account.
101 std::string client_login_token_; 101 std::string client_login_token_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); 103 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth);
104 }; 104 };
105 105
106 } // namespace cloud_print 106 } // namespace cloud_print
107 107
108 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ 108 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_
109 109
OLDNEW
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698