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