| 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" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 JOB_HANDLER_INVALID_DATA, | 54 JOB_HANDLER_INVALID_DATA, |
| 55 JOB_HANDLER_MAX, | 55 JOB_HANDLER_MAX, |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace | 58 } // namespace |
| 59 | 59 |
| 60 PrinterJobHandler::PrinterInfoFromCloud::PrinterInfoFromCloud() | 60 PrinterJobHandler::PrinterInfoFromCloud::PrinterInfoFromCloud() |
| 61 : current_xmpp_timeout(0), pending_xmpp_timeout(0) { | 61 : current_xmpp_timeout(0), pending_xmpp_timeout(0) { |
| 62 } | 62 } |
| 63 | 63 |
| 64 PrinterJobHandler::PrinterInfoFromCloud::PrinterInfoFromCloud( |
| 65 const PrinterInfoFromCloud& other) = default; |
| 66 |
| 64 PrinterJobHandler::PrinterJobHandler( | 67 PrinterJobHandler::PrinterJobHandler( |
| 65 const printing::PrinterBasicInfo& printer_info, | 68 const printing::PrinterBasicInfo& printer_info, |
| 66 const PrinterInfoFromCloud& printer_info_cloud, | 69 const PrinterInfoFromCloud& printer_info_cloud, |
| 67 const GURL& cloud_print_server_url, | 70 const GURL& cloud_print_server_url, |
| 68 PrintSystem* print_system, | 71 PrintSystem* print_system, |
| 69 Delegate* delegate) | 72 Delegate* delegate) |
| 70 : print_system_(print_system), | 73 : print_system_(print_system), |
| 71 printer_info_(printer_info), | 74 printer_info_(printer_info), |
| 72 printer_info_cloud_(printer_info_cloud), | 75 printer_info_cloud_(printer_info_cloud), |
| 73 cloud_print_server_url_(cloud_print_server_url), | 76 cloud_print_server_url_(cloud_print_server_url), |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 job_details.print_data_mime_type_, | 813 job_details.print_data_mime_type_, |
| 811 printer_name, | 814 printer_name, |
| 812 base::UTF16ToUTF8(document_name), | 815 base::UTF16ToUTF8(document_name), |
| 813 job_details.tags_, | 816 job_details.tags_, |
| 814 this)) { | 817 this)) { |
| 815 OnJobSpoolFailed(); | 818 OnJobSpoolFailed(); |
| 816 } | 819 } |
| 817 } | 820 } |
| 818 | 821 |
| 819 } // namespace cloud_print | 822 } // namespace cloud_print |
| OLD | NEW |