OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual void OnGetTokensResponse(const std::string& refresh_token, | 67 virtual void OnGetTokensResponse(const std::string& refresh_token, |
68 const std::string& access_token, | 68 const std::string& access_token, |
69 int expires_in_seconds) OVERRIDE; | 69 int expires_in_seconds) OVERRIDE; |
70 virtual void OnRefreshTokenResponse(const std::string& access_token, | 70 virtual void OnRefreshTokenResponse(const std::string& access_token, |
71 int expires_in_seconds) OVERRIDE; | 71 int expires_in_seconds) OVERRIDE; |
72 virtual void OnOAuthError() OVERRIDE; | 72 virtual void OnOAuthError() OVERRIDE; |
73 virtual void OnNetworkError(int response_code) OVERRIDE; | 73 virtual void OnNetworkError(int response_code) OVERRIDE; |
74 | 74 |
75 // CloudPrintURLFetcher::Delegate implementation. | 75 // CloudPrintURLFetcher::Delegate implementation. |
76 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( | 76 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( |
77 const content::URLFetcher* source, | 77 const net::URLFetcher* source, |
78 const GURL& url, | 78 const GURL& url, |
79 base::DictionaryValue* json_data, | 79 base::DictionaryValue* json_data, |
80 bool succeeded) OVERRIDE; | 80 bool succeeded) OVERRIDE; |
81 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; | 81 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; |
82 virtual std::string GetAuthHeader() OVERRIDE; | 82 virtual std::string GetAuthHeader() OVERRIDE; |
83 | 83 |
84 private: | 84 private: |
85 friend class base::RefCountedThreadSafe<CloudPrintAuth>; | 85 friend class base::RefCountedThreadSafe<CloudPrintAuth>; |
86 virtual ~CloudPrintAuth(); | 86 virtual ~CloudPrintAuth(); |
87 | 87 |
(...skipping 19 matching lines...) Expand all Loading... |
107 std::string robot_email_; | 107 std::string robot_email_; |
108 // client login token used to authenticate request to cloud print server to | 108 // client login token used to authenticate request to cloud print server to |
109 // get the robot account. | 109 // get the robot account. |
110 std::string client_login_token_; | 110 std::string client_login_token_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); | 112 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); |
113 }; | 113 }; |
114 | 114 |
115 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ | 115 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ |
116 | 116 |
OLD | NEW |