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/browser/printing/print_system_task_proxy.h" | 5 #include "chrome/browser/printing/print_system_task_proxy.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/string_split.h" | 14 #include "base/string_split.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/ui/webui/print_preview_handler.h" | 17 #include "chrome/browser/ui/webui/print_preview/print_preview_handler.h" |
18 #include "printing/backend/print_backend.h" | 18 #include "printing/backend/print_backend.h" |
19 #include "printing/print_job_constants.h" | 19 #include "printing/print_job_constants.h" |
20 #include "printing/print_settings.h" | 20 #include "printing/print_settings.h" |
21 | 21 |
22 #if defined(USE_CUPS) | 22 #if defined(USE_CUPS) |
23 #include <cups/cups.h> | 23 #include <cups/cups.h> |
24 #include <cups/ppd.h> | 24 #include <cups/ppd.h> |
25 | 25 |
26 #include "base/file_util.h" | 26 #include "base/file_util.h" |
27 #endif | 27 #endif |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 base::Bind(&PrintSystemTaskProxy::SendPrinterCapabilities, this, | 581 base::Bind(&PrintSystemTaskProxy::SendPrinterCapabilities, this, |
582 settings_info.DeepCopy())); | 582 settings_info.DeepCopy())); |
583 } | 583 } |
584 | 584 |
585 void PrintSystemTaskProxy::SendPrinterCapabilities( | 585 void PrintSystemTaskProxy::SendPrinterCapabilities( |
586 DictionaryValue* settings_info) { | 586 DictionaryValue* settings_info) { |
587 if (handler_) | 587 if (handler_) |
588 handler_->SendPrinterCapabilities(*settings_info); | 588 handler_->SendPrinterCapabilities(*settings_info); |
589 delete settings_info; | 589 delete settings_info; |
590 } | 590 } |
OLD | NEW |