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/macros.h" | 10 #include "base/macros.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 bool succeeded) override; | 73 bool succeeded) override; |
74 CloudPrintURLFetcher::ResponseAction OnRequestAuthError() override; | 74 CloudPrintURLFetcher::ResponseAction OnRequestAuthError() override; |
75 std::string GetAuthHeader() override; | 75 std::string GetAuthHeader() override; |
76 | 76 |
77 private: | 77 private: |
78 friend class base::RefCountedThreadSafe<CloudPrintAuth>; | 78 friend class base::RefCountedThreadSafe<CloudPrintAuth>; |
79 ~CloudPrintAuth() override; | 79 ~CloudPrintAuth() override; |
80 | 80 |
81 Client* client_; | 81 Client* client_; |
82 gaia::OAuthClientInfo oauth_client_info_; | 82 gaia::OAuthClientInfo oauth_client_info_; |
83 scoped_ptr<gaia::GaiaOAuthClient> oauth_client_; | 83 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_; |
Lei Zhang
2016/04/19 01:35:42
IWYU
dcheng
2016/04/19 03:51:33
Done.
| |
84 | 84 |
85 // The CloudPrintURLFetcher instance for the current request. | 85 // The CloudPrintURLFetcher instance for the current request. |
86 scoped_refptr<CloudPrintURLFetcher> request_; | 86 scoped_refptr<CloudPrintURLFetcher> request_; |
87 | 87 |
88 GURL cloud_print_server_url_; | 88 GURL cloud_print_server_url_; |
89 // Proxy id, need to send to the cloud print server to find and update | 89 // Proxy id, need to send to the cloud print server to find and update |
90 // necessary printers during the migration process. | 90 // necessary printers during the migration process. |
91 const std::string& proxy_id_; | 91 const std::string& proxy_id_; |
92 // The OAuth2 refresh token for the robot. | 92 // The OAuth2 refresh token for the robot. |
93 std::string refresh_token_; | 93 std::string refresh_token_; |
94 // The email address of the user. This is only used during initial | 94 // The email address of the user. This is only used during initial |
95 // authentication with an LSID. This is only used for storing in prefs for | 95 // authentication with an LSID. This is only used for storing in prefs for |
96 // display purposes. | 96 // display purposes. |
97 std::string user_email_; | 97 std::string user_email_; |
98 // The email address of the robot account. | 98 // The email address of the robot account. |
99 std::string robot_email_; | 99 std::string robot_email_; |
100 // client login token used to authenticate request to cloud print server to | 100 // client login token used to authenticate request to cloud print server to |
101 // get the robot account. | 101 // get the robot account. |
102 std::string client_login_token_; | 102 std::string client_login_token_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); | 104 DISALLOW_COPY_AND_ASSIGN(CloudPrintAuth); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace cloud_print | 107 } // namespace cloud_print |
108 | 108 |
109 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ | 109 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_AUTH_H_ |
110 | 110 |
OLD | NEW |