| 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/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/common/cloud_print/cloud_print_constants.h" | 12 #include "chrome/common/cloud_print/cloud_print_constants.h" |
| 13 #include "chrome/service/cloud_print/cloud_print_helpers.h" | 13 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace cloud_print { | 16 namespace cloud_print { |
| 17 | 17 |
| 18 JobStatusUpdater::JobStatusUpdater(const std::string& printer_name, | 18 JobStatusUpdater::JobStatusUpdater(const std::string& printer_name, |
| 19 const std::string& job_id, | 19 const std::string& job_id, |
| 20 PlatformJobId& local_job_id, | 20 PlatformJobId& local_job_id, |
| 21 const GURL& cloud_print_server_url, | 21 const GURL& cloud_print_server_url, |
| 22 PrintSystem* print_system, | 22 PrintSystem* print_system, |
| 23 Delegate* delegate) | 23 Delegate* delegate) |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 return CloudPrintURLFetcher::STOP_PROCESSING; | 104 return CloudPrintURLFetcher::STOP_PROCESSING; |
| 105 } | 105 } |
| 106 | 106 |
| 107 std::string JobStatusUpdater::GetAuthHeader() { | 107 std::string JobStatusUpdater::GetAuthHeader() { |
| 108 return GetCloudPrintAuthHeaderFromStore(); | 108 return GetCloudPrintAuthHeaderFromStore(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 JobStatusUpdater::~JobStatusUpdater() {} | 111 JobStatusUpdater::~JobStatusUpdater() {} |
| 112 | 112 |
| 113 } // namespace cloud_print | 113 } // namespace cloud_print |
| OLD | NEW |