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/location.h" | 8 #include "base/location.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "chrome/common/cloud_print/cloud_print_constants.h" | 13 #include "chrome/common/cloud_print/cloud_print_constants.h" |
14 #include "chrome/common/cloud_print/cloud_print_helpers.h" | 14 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
15 #include "chrome/service/cloud_print/cloud_print_token_store.h" | 15 #include "chrome/service/cloud_print/cloud_print_token_store.h" |
16 #include "chrome/service/net/service_url_request_context_getter.h" | 16 #include "chrome/service/net/service_url_request_context_getter.h" |
17 #include "chrome/service/service_process.h" | 17 #include "chrome/service/service_process.h" |
18 #include "google_apis/gaia/gaia_urls.h" | 18 #include "google_apis/gaia/gaia_urls.h" |
19 | 19 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 DCHECK(!client_login_token_.empty()); | 215 DCHECK(!client_login_token_.empty()); |
216 std::string header; | 216 std::string header; |
217 header = "Authorization: GoogleLogin auth="; | 217 header = "Authorization: GoogleLogin auth="; |
218 header += client_login_token_; | 218 header += client_login_token_; |
219 return header; | 219 return header; |
220 } | 220 } |
221 | 221 |
222 CloudPrintAuth::~CloudPrintAuth() {} | 222 CloudPrintAuth::~CloudPrintAuth() {} |
223 | 223 |
224 } // namespace cloud_print | 224 } // namespace cloud_print |
OLD | NEW |