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/print_system.h" | 5 #include "chrome/service/cloud_print/print_system.h" |
6 | 6 |
7 #include <cups/cups.h> | 7 #include <cups/cups.h> |
8 #include <dlfcn.h> | 8 #include <dlfcn.h> |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <pthread.h> | 10 #include <pthread.h> |
11 #include <stddef.h> | 11 #include <stddef.h> |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <map> | 14 #include <map> |
15 #include <memory> | 15 #include <memory> |
16 | 16 |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/files/file_util.h" | 19 #include "base/files/file_util.h" |
20 #include "base/json/json_reader.h" | 20 #include "base/json/json_reader.h" |
21 #include "base/location.h" | 21 #include "base/location.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/macros.h" | 23 #include "base/macros.h" |
24 #include "base/md5.h" | 24 #include "base/md5.h" |
25 #include "base/rand_util.h" | 25 #include "base/rand_util.h" |
26 #include "base/single_thread_task_runner.h" | 26 #include "base/single_thread_task_runner.h" |
27 #include "base/strings/string_number_conversions.h" | 27 #include "base/strings/string_number_conversions.h" |
28 #include "base/strings/string_util.h" | 28 #include "base/strings/string_util.h" |
29 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
30 #include "base/thread_task_runner_handle.h" | 30 #include "base/threading/thread_task_runner_handle.h" |
31 #include "base/values.h" | 31 #include "base/values.h" |
32 #include "chrome/common/cloud_print/cloud_print_constants.h" | 32 #include "chrome/common/cloud_print/cloud_print_constants.h" |
33 #include "chrome/common/crash_keys.h" | 33 #include "chrome/common/crash_keys.h" |
34 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" | 34 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
35 #include "printing/backend/cups_helper.h" | 35 #include "printing/backend/cups_helper.h" |
36 #include "printing/backend/print_backend.h" | 36 #include "printing/backend/print_backend.h" |
37 #include "printing/backend/print_backend_consts.h" | 37 #include "printing/backend/print_backend_consts.h" |
38 #include "url/gurl.h" | 38 #include "url/gurl.h" |
39 | 39 |
40 namespace { | 40 namespace { |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 | 844 |
845 void PrintSystemCUPS::RunCapsCallback( | 845 void PrintSystemCUPS::RunCapsCallback( |
846 const PrinterCapsAndDefaultsCallback& callback, | 846 const PrinterCapsAndDefaultsCallback& callback, |
847 bool succeeded, | 847 bool succeeded, |
848 const std::string& printer_name, | 848 const std::string& printer_name, |
849 const printing::PrinterCapsAndDefaults& printer_info) { | 849 const printing::PrinterCapsAndDefaults& printer_info) { |
850 callback.Run(succeeded, printer_name, printer_info); | 850 callback.Run(succeeded, printer_name, printer_info); |
851 } | 851 } |
852 | 852 |
853 } // namespace cloud_print | 853 } // namespace cloud_print |
OLD | NEW |