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 #include "chrome/service/cloud_print/cloud_print_auth.h" | 5 #include "chrome/service/cloud_print/cloud_print_auth.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "chrome/common/net/gaia/gaia_urls.h" | |
10 #include "chrome/service/cloud_print/cloud_print_consts.h" | 9 #include "chrome/service/cloud_print/cloud_print_consts.h" |
11 #include "chrome/service/cloud_print/cloud_print_helpers.h" | 10 #include "chrome/service/cloud_print/cloud_print_helpers.h" |
12 #include "chrome/service/cloud_print/cloud_print_token_store.h" | 11 #include "chrome/service/cloud_print/cloud_print_token_store.h" |
13 #include "chrome/service/gaia/service_gaia_authenticator.h" | 12 #include "chrome/service/gaia/service_gaia_authenticator.h" |
14 #include "chrome/service/net/service_url_request_context.h" | 13 #include "chrome/service/net/service_url_request_context.h" |
15 #include "chrome/service/service_process.h" | 14 #include "chrome/service/service_process.h" |
| 15 #include "google_apis/gaia/gaia_urls.h" |
16 | 16 |
17 CloudPrintAuth::CloudPrintAuth( | 17 CloudPrintAuth::CloudPrintAuth( |
18 Client* client, | 18 Client* client, |
19 const GURL& cloud_print_server_url, | 19 const GURL& cloud_print_server_url, |
20 const base::DictionaryValue* print_sys_settings, | 20 const base::DictionaryValue* print_sys_settings, |
21 const gaia::OAuthClientInfo& oauth_client_info, | 21 const gaia::OAuthClientInfo& oauth_client_info, |
22 const std::string& proxy_id) | 22 const std::string& proxy_id) |
23 : client_(client), | 23 : client_(client), |
24 oauth_client_info_(oauth_client_info), | 24 oauth_client_info_(oauth_client_info), |
25 cloud_print_server_url_(cloud_print_server_url), | 25 cloud_print_server_url_(cloud_print_server_url), |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 std::string CloudPrintAuth::GetAuthHeader() { | 195 std::string CloudPrintAuth::GetAuthHeader() { |
196 DCHECK(!client_login_token_.empty()); | 196 DCHECK(!client_login_token_.empty()); |
197 std::string header; | 197 std::string header; |
198 header = "Authorization: GoogleLogin auth="; | 198 header = "Authorization: GoogleLogin auth="; |
199 header += client_login_token_; | 199 header += client_login_token_; |
200 return header; | 200 return header; |
201 } | 201 } |
202 | 202 |
203 CloudPrintAuth::~CloudPrintAuth() {} | 203 CloudPrintAuth::~CloudPrintAuth() {} |
204 | 204 |
OLD | NEW |