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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/common/net/gaia/gaia_oauth_client.h" | |
12 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" | 11 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" |
| 12 #include "google_apis/gaia/gaia_oauth_client.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 | 14 |
15 // CloudPrintAuth is a class to handle login, token refresh, and other | 15 // CloudPrintAuth is a class to handle login, token refresh, and other |
16 // authentication tasks for Cloud Print. | 16 // authentication tasks for Cloud Print. |
17 // CloudPrintAuth will create new robot account for this proxy if needed. | 17 // CloudPrintAuth will create new robot account for this proxy if needed. |
18 // CloudPrintAuth will obtain new OAuth token. | 18 // CloudPrintAuth will obtain new OAuth token. |
19 // CloudPrintAuth will schedule periodic OAuth token refresh | 19 // CloudPrintAuth will schedule periodic OAuth token refresh |
20 // It is running in the same thread as CloudPrintProxyBackend::Core. | 20 // It is running in the same thread as CloudPrintProxyBackend::Core. |
21 class CloudPrintAuth | 21 class CloudPrintAuth |
22 : public base::RefCountedThreadSafe<CloudPrintAuth>, | 22 : public base::RefCountedThreadSafe<CloudPrintAuth>, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 std::string robot_email_; | 106 std::string robot_email_; |
107 // client login token used to authenticate request to cloud print server to | 107 // client login token used to authenticate request to cloud print server to |
108 // get the robot account. | 108 // get the robot account. |
109 std::string client_login_token_; | 109 std::string client_login_token_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); | 111 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); |
112 }; | 112 }; |
113 | 113 |
114 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ | 114 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ |
115 | 115 |
OLD | NEW |