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 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/file_util.h" |
12 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
13 #include "base/values.h" | 14 #include "base/values.h" |
14 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
15 #include "chrome/common/extensions/update_manifest.h" | 16 #include "chrome/common/extensions/update_manifest.h" |
16 #include "content/public/common/common_param_traits.h" | 17 #include "content/public/common/common_param_traits.h" |
17 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
18 #include "printing/backend/print_backend.h" | 19 #include "printing/backend/print_backend.h" |
19 #include "printing/page_range.h" | 20 #include "printing/page_range.h" |
20 #include "printing/pdf_render_settings.h" | 21 #include "printing/pdf_render_settings.h" |
21 #include "third_party/skia/include/core/SkBitmap.h" | 22 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, | 94 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, |
94 std::string /* JSON to parse */) | 95 std::string /* JSON to parse */) |
95 | 96 |
96 // Tells the utility process to get capabilities and defaults for the specified | 97 // Tells the utility process to get capabilities and defaults for the specified |
97 // printer. Used on Windows to isolate the service process from printer driver | 98 // printer. Used on Windows to isolate the service process from printer driver |
98 // crashes by executing this in a separate process. This does not run in a | 99 // crashes by executing this in a separate process. This does not run in a |
99 // sandbox. | 100 // sandbox. |
100 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, | 101 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, |
101 std::string /* printer name */) | 102 std::string /* printer name */) |
102 | 103 |
| 104 #if defined(OS_CHROMEOS) |
| 105 // Tell the utility process to create a zip file on the given list of files. |
| 106 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, |
| 107 FilePath /* src_dir */, |
| 108 std::vector<FilePath> /* src_relative_paths */, |
| 109 base::FileDescriptor /* dest_fd */) |
| 110 #endif // defined(OS_CHROMEOS) |
| 111 |
103 //------------------------------------------------------------------------------ | 112 //------------------------------------------------------------------------------ |
104 // Utility process host messages: | 113 // Utility process host messages: |
105 // These are messages from the utility process to the browser. | 114 // These are messages from the utility process to the browser. |
106 // Reply when the utility process is done unpacking an extension. |manifest| | 115 // Reply when the utility process is done unpacking an extension. |manifest| |
107 // is the parsed manifest.json file. | 116 // is the parsed manifest.json file. |
108 // The unpacker should also have written out files containing the decoded | 117 // The unpacker should also have written out files containing the decoded |
109 // images and message catalogs from the extension. See extensions::Unpacker for | 118 // images and message catalogs from the extension. See extensions::Unpacker for |
110 // details. | 119 // details. |
111 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, | 120 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, |
112 DictionaryValue /* manifest */) | 121 DictionaryValue /* manifest */) |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // capabilities and defaults. | 179 // capabilities and defaults. |
171 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 180 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
172 std::string /* printer name */, | 181 std::string /* printer name */, |
173 printing::PrinterCapsAndDefaults) | 182 printing::PrinterCapsAndDefaults) |
174 #endif | 183 #endif |
175 | 184 |
176 // Reply when the utility process has failed to obtain the printer | 185 // Reply when the utility process has failed to obtain the printer |
177 // capabilities and defaults. | 186 // capabilities and defaults. |
178 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 187 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
179 std::string /* printer name */) | 188 std::string /* printer name */) |
| 189 |
| 190 #if defined(OS_CHROMEOS) |
| 191 // Reply when the utility process has succeeded in creating the zip file. |
| 192 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) |
| 193 |
| 194 // Reply when an error occured in creating the zip file. |
| 195 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) |
| 196 #endif // defined(OS_CHROMEOS) |
OLD | NEW |