OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/file_path.h" | 16 #include "base/file_path.h" |
17 #include "base/json/json_reader.h" | 17 #include "base/json/json_reader.h" |
18 #include "base/lock.h" | |
19 #include "base/logging.h" | 18 #include "base/logging.h" |
20 #include "base/md5.h" | 19 #include "base/md5.h" |
21 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
22 #include "base/rand_util.h" | 21 #include "base/rand_util.h" |
23 #include "base/scoped_ptr.h" | 22 #include "base/scoped_ptr.h" |
24 #include "base/string_number_conversions.h" | 23 #include "base/string_number_conversions.h" |
25 #include "base/string_util.h" | 24 #include "base/string_util.h" |
26 #include "base/task.h" | 25 #include "base/task.h" |
27 #include "base/values.h" | 26 #include "base/values.h" |
28 #include "base/utf_string_conversions.h" | 27 #include "base/utf_string_conversions.h" |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 void PrintSystemCUPS::RunCapsCallback( | 765 void PrintSystemCUPS::RunCapsCallback( |
767 PrinterCapsAndDefaultsCallback* callback, | 766 PrinterCapsAndDefaultsCallback* callback, |
768 bool succeeded, | 767 bool succeeded, |
769 const std::string& printer_name, | 768 const std::string& printer_name, |
770 const printing::PrinterCapsAndDefaults& printer_info) { | 769 const printing::PrinterCapsAndDefaults& printer_info) { |
771 callback->Run(succeeded, printer_name, printer_info); | 770 callback->Run(succeeded, printer_name, printer_info); |
772 delete callback; | 771 delete callback; |
773 } | 772 } |
774 | 773 |
775 } // namespace cloud_print | 774 } // namespace cloud_print |
OLD | NEW |