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 "printing/backend/cups_helper.h" | 5 #include "printing/backend/cups_helper.h" |
6 | 6 |
7 #include <cups/ppd.h> | 7 #include <cups/ppd.h> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "base/string_split.h" | |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/strings/string_split.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "printing/backend/print_backend.h" | 16 #include "printing/backend/print_backend.h" |
17 #include "printing/backend/print_backend_consts.h" | 17 #include "printing/backend/print_backend_consts.h" |
18 | 18 |
19 // This section contains helper code for PPD parsing for semantic capabilities. | 19 // This section contains helper code for PPD parsing for semantic capabilities. |
20 namespace { | 20 namespace { |
21 | 21 |
22 const char kColorDevice[] = "ColorDevice"; | 22 const char kColorDevice[] = "ColorDevice"; |
23 const char kColorModel[] = "ColorModel"; | 23 const char kColorModel[] = "ColorModel"; |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 caps.color_default = is_color; | 387 caps.color_default = is_color; |
388 | 388 |
389 ppdClose(ppd); | 389 ppdClose(ppd); |
390 file_util::Delete(ppd_file_path, false); | 390 file_util::Delete(ppd_file_path, false); |
391 | 391 |
392 *printer_info = caps; | 392 *printer_info = caps; |
393 return true; | 393 return true; |
394 } | 394 } |
395 | 395 |
396 } // namespace printing | 396 } // namespace printing |
OLD | NEW |