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 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <list> | 13 #include <list> |
14 #include <map> | 14 #include <map> |
15 | 15 |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/json/json_reader.h" | 18 #include "base/json/json_reader.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/md5.h" | 20 #include "base/md5.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/message_loop/message_loop.h" | 22 #include "base/message_loop/message_loop.h" |
23 #include "base/rand_util.h" | 23 #include "base/rand_util.h" |
24 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
25 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
27 #include "base/values.h" | 27 #include "base/values.h" |
28 #include "chrome/common/cloud_print/cloud_print_constants.h" | 28 #include "chrome/common/cloud_print/cloud_print_constants.h" |
29 #include "chrome/common/crash_keys.h" | 29 #include "chrome/common/crash_keys.h" |
30 #include "chrome/service/cloud_print/cloud_print_helpers.h" | 30 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "printing/backend/cups_helper.h" | 32 #include "printing/backend/cups_helper.h" |
33 #include "printing/backend/print_backend.h" | 33 #include "printing/backend/print_backend.h" |
34 #include "printing/backend/print_backend_consts.h" | 34 #include "printing/backend/print_backend_consts.h" |
35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
36 #include "url/gurl.h" | 36 #include "url/gurl.h" |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 // Print system config options. | 40 // Print system config options. |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 860 |
861 void PrintSystemCUPS::RunCapsCallback( | 861 void PrintSystemCUPS::RunCapsCallback( |
862 const PrinterCapsAndDefaultsCallback& callback, | 862 const PrinterCapsAndDefaultsCallback& callback, |
863 bool succeeded, | 863 bool succeeded, |
864 const std::string& printer_name, | 864 const std::string& printer_name, |
865 const printing::PrinterCapsAndDefaults& printer_info) { | 865 const printing::PrinterCapsAndDefaults& printer_info) { |
866 callback.Run(succeeded, printer_name, printer_info); | 866 callback.Run(succeeded, printer_name, printer_info); |
867 } | 867 } |
868 | 868 |
869 } // namespace cloud_print | 869 } // namespace cloud_print |
OLD | NEW |