| 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 | 12 |
| 12 #include <algorithm> | 13 #include <algorithm> |
| 13 #include <list> | 14 #include <list> |
| 14 #include <map> | 15 #include <map> |
| 15 | 16 |
| 16 #include "base/bind.h" | 17 #include "base/bind.h" |
| 17 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
| 18 #include "base/json/json_reader.h" | 19 #include "base/json/json_reader.h" |
| 19 #include "base/location.h" | 20 #include "base/location.h" |
| 20 #include "base/logging.h" | 21 #include "base/logging.h" |
| 22 #include "base/macros.h" |
| 21 #include "base/md5.h" | 23 #include "base/md5.h" |
| 22 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
| 23 #include "base/rand_util.h" | 25 #include "base/rand_util.h" |
| 24 #include "base/single_thread_task_runner.h" | 26 #include "base/single_thread_task_runner.h" |
| 25 #include "base/strings/string_number_conversions.h" | 27 #include "base/strings/string_number_conversions.h" |
| 26 #include "base/strings/string_util.h" | 28 #include "base/strings/string_util.h" |
| 27 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
| 28 #include "base/thread_task_runner_handle.h" | 30 #include "base/thread_task_runner_handle.h" |
| 29 #include "base/values.h" | 31 #include "base/values.h" |
| 30 #include "chrome/common/cloud_print/cloud_print_constants.h" | 32 #include "chrome/common/cloud_print/cloud_print_constants.h" |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 | 859 |
| 858 void PrintSystemCUPS::RunCapsCallback( | 860 void PrintSystemCUPS::RunCapsCallback( |
| 859 const PrinterCapsAndDefaultsCallback& callback, | 861 const PrinterCapsAndDefaultsCallback& callback, |
| 860 bool succeeded, | 862 bool succeeded, |
| 861 const std::string& printer_name, | 863 const std::string& printer_name, |
| 862 const printing::PrinterCapsAndDefaults& printer_info) { | 864 const printing::PrinterCapsAndDefaults& printer_info) { |
| 863 callback.Run(succeeded, printer_name, printer_info); | 865 callback.Run(succeeded, printer_name, printer_info); |
| 864 } | 866 } |
| 865 | 867 |
| 866 } // namespace cloud_print | 868 } // namespace cloud_print |
| OLD | NEW |