| 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/printer_job_handler.h" | 5 #include "chrome/service/cloud_print/printer_job_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/md5.h" | 12 #include "base/md5.h" |
| 13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "build/build_config.h" |
| 19 #include "chrome/common/cloud_print/cloud_print_constants.h" | 20 #include "chrome/common/cloud_print/cloud_print_constants.h" |
| 20 #include "chrome/common/cloud_print/cloud_print_helpers.h" | 21 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
| 21 #include "chrome/grit/generated_resources.h" | 22 #include "chrome/grit/generated_resources.h" |
| 22 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" | 23 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
| 23 #include "chrome/service/cloud_print/job_status_updater.h" | 24 #include "chrome/service/cloud_print/job_status_updater.h" |
| 24 #include "net/base/mime_util.h" | 25 #include "net/base/mime_util.h" |
| 25 #include "net/http/http_response_headers.h" | 26 #include "net/http/http_response_headers.h" |
| 26 #include "net/http/http_status_code.h" | 27 #include "net/http/http_status_code.h" |
| 27 #include "printing/printing_utils.h" | 28 #include "printing/printing_utils.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 job_details.print_data_mime_type_, | 811 job_details.print_data_mime_type_, |
| 811 printer_name, | 812 printer_name, |
| 812 base::UTF16ToUTF8(document_name), | 813 base::UTF16ToUTF8(document_name), |
| 813 job_details.tags_, | 814 job_details.tags_, |
| 814 this)) { | 815 this)) { |
| 815 OnJobSpoolFailed(); | 816 OnJobSpoolFailed(); |
| 816 } | 817 } |
| 817 } | 818 } |
| 818 | 819 |
| 819 } // namespace cloud_print | 820 } // namespace cloud_print |
| OLD | NEW |