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/job_status_updater.h" | 5 #include "chrome/service/cloud_print/job_status_updater.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/common/cloud_print/cloud_print_constants.h" | 16 #include "chrome/common/cloud_print/cloud_print_constants.h" |
17 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" | 17 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
20 namespace cloud_print { | 20 namespace cloud_print { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 bool IsTerminalJobState(PrintJobStatus status) { | 24 bool IsTerminalJobState(PrintJobStatus status) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 return CloudPrintURLFetcher::STOP_PROCESSING; | 119 return CloudPrintURLFetcher::STOP_PROCESSING; |
120 } | 120 } |
121 | 121 |
122 std::string JobStatusUpdater::GetAuthHeader() { | 122 std::string JobStatusUpdater::GetAuthHeader() { |
123 return GetCloudPrintAuthHeaderFromStore(); | 123 return GetCloudPrintAuthHeaderFromStore(); |
124 } | 124 } |
125 | 125 |
126 JobStatusUpdater::~JobStatusUpdater() {} | 126 JobStatusUpdater::~JobStatusUpdater() {} |
127 | 127 |
128 } // namespace cloud_print | 128 } // namespace cloud_print |
OLD | NEW |