| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_path.h" | 17 #include "base/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.h" | 22 #include "base/message_loop.h" |
| 23 #include "base/rand_util.h" | 23 #include "base/rand_util.h" |
| 24 #include "base/string_number_conversions.h" | 24 #include "base/string_number_conversions.h" |
| 25 #include "base/string_util.h" | 25 #include "base/string_util.h" |
| 26 #include "base/task.h" | |
| 27 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" |
| 28 #include "base/values.h" | 27 #include "base/values.h" |
| 29 #include "chrome/service/cloud_print/cloud_print_consts.h" | 28 #include "chrome/service/cloud_print/cloud_print_consts.h" |
| 30 #include "chrome/service/cloud_print/cloud_print_helpers.h" | 29 #include "chrome/service/cloud_print/cloud_print_helpers.h" |
| 31 #include "googleurl/src/gurl.h" | 30 #include "googleurl/src/gurl.h" |
| 32 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
| 33 #include "printing/backend/cups_helper.h" | 32 #include "printing/backend/cups_helper.h" |
| 34 #include "printing/backend/print_backend.h" | 33 #include "printing/backend/print_backend.h" |
| 35 #include "printing/backend/print_backend_consts.h" | 34 #include "printing/backend/print_backend_consts.h" |
| 36 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 | 816 |
| 818 void PrintSystemCUPS::RunCapsCallback( | 817 void PrintSystemCUPS::RunCapsCallback( |
| 819 const PrinterCapsAndDefaultsCallback& callback, | 818 const PrinterCapsAndDefaultsCallback& callback, |
| 820 bool succeeded, | 819 bool succeeded, |
| 821 const std::string& printer_name, | 820 const std::string& printer_name, |
| 822 const printing::PrinterCapsAndDefaults& printer_info) { | 821 const printing::PrinterCapsAndDefaults& printer_info) { |
| 823 callback.Run(succeeded, printer_name, printer_info); | 822 callback.Run(succeeded, printer_name, printer_info); |
| 824 } | 823 } |
| 825 | 824 |
| 826 } // namespace cloud_print | 825 } // namespace cloud_print |
| OLD | NEW |