| 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/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| 11 #include "base/md5.h" | 11 #include "base/md5.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.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/common/cloud_print/cloud_print_helpers.h" | 17 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
| 18 #include "chrome/grit/generated_resources.h" |
| 18 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" | 19 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
| 19 #include "chrome/service/cloud_print/job_status_updater.h" | 20 #include "chrome/service/cloud_print/job_status_updater.h" |
| 20 #include "grit/generated_resources.h" | |
| 21 #include "net/base/mime_util.h" | 21 #include "net/base/mime_util.h" |
| 22 #include "net/http/http_response_headers.h" | 22 #include "net/http/http_response_headers.h" |
| 23 #include "net/http/http_status_code.h" | 23 #include "net/http/http_status_code.h" |
| 24 #include "printing/printing_utils.h" | 24 #include "printing/printing_utils.h" |
| 25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
| 26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
| 27 | 27 |
| 28 namespace cloud_print { | 28 namespace cloud_print { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 job_details.print_data_mime_type_, | 806 job_details.print_data_mime_type_, |
| 807 printer_name, | 807 printer_name, |
| 808 base::UTF16ToUTF8(document_name), | 808 base::UTF16ToUTF8(document_name), |
| 809 job_details.tags_, | 809 job_details.tags_, |
| 810 this)) { | 810 this)) { |
| 811 OnJobSpoolFailed(); | 811 OnJobSpoolFailed(); |
| 812 } | 812 } |
| 813 } | 813 } |
| 814 | 814 |
| 815 } // namespace cloud_print | 815 } // namespace cloud_print |
| OLD | NEW |