OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_dialog_cloud.h" | 5 #include "chrome/browser/printing/print_dialog_cloud.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/base64.h" | 10 #include "base/base64.h" |
8 #include "base/bind.h" | 11 #include "base/bind.h" |
9 #include "base/command_line.h" | 12 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
12 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
| 16 #include "base/macros.h" |
13 #include "base/memory/ref_counted_memory.h" | 17 #include "base/memory/ref_counted_memory.h" |
14 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
16 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
17 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/browser.h" | 23 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/browser/ui/browser_window.h" | 24 #include "chrome/browser/ui/browser_window.h" |
21 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | 25 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
22 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 std::string file_type = | 156 std::string file_type = |
153 command_line.GetSwitchValueASCII(switches::kCloudPrintFileType); | 157 command_line.GetSwitchValueASCII(switches::kCloudPrintFileType); |
154 if (file_type.empty()) | 158 if (file_type.empty()) |
155 file_type = "application/pdf"; | 159 file_type = "application/pdf"; |
156 CreatePrintDialogForFile(profile, cloud_print_file, print_job_title, | 160 CreatePrintDialogForFile(profile, cloud_print_file, print_job_title, |
157 print_job_print_ticket, file_type); | 161 print_job_print_ticket, file_type); |
158 return true; | 162 return true; |
159 } | 163 } |
160 | 164 |
161 } // namespace print_dialog_cloud | 165 } // namespace print_dialog_cloud |
OLD | NEW |