OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <algorithm> | 5 #include <algorithm> |
6 #include <fstream> | 6 #include <fstream> |
7 #include <iostream> | 7 #include <iostream> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <limits> | 9 #include <limits> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/file_util.h" | |
17 #include "base/files/file.h" | 16 #include "base/files/file.h" |
18 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 18 #include "base/files/file_util.h" |
19 #include "base/files/scoped_temp_dir.h" | 19 #include "base/files/scoped_temp_dir.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/md5.h" | 21 #include "base/md5.h" |
22 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
24 #include "base/run_loop.h" | 24 #include "base/run_loop.h" |
25 #include "base/scoped_native_library.h" | 25 #include "base/scoped_native_library.h" |
26 #include "base/strings/string_split.h" | 26 #include "base/strings/string_split.h" |
27 #include "base/strings/utf_string_conversions.h" | 27 #include "base/strings/utf_string_conversions.h" |
28 #include "chrome/browser/printing/print_preview_dialog_controller.h" | 28 #include "chrome/browser/printing/print_preview_dialog_controller.h" |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 // waiting for this message and start waiting for the image data. | 694 // waiting for this message and start waiting for the image data. |
695 std::cout << "#EOF\n"; | 695 std::cout << "#EOF\n"; |
696 std::cout.flush(); | 696 std::cout.flush(); |
697 | 697 |
698 SendPng(); | 698 SendPng(); |
699 Reset(); | 699 Reset(); |
700 } | 700 } |
701 } | 701 } |
702 | 702 |
703 } // namespace printing | 703 } // namespace printing |
OLD | NEW |