| 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" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, | 93 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, |
| 94 std::string /* JSON to parse */) | 94 std::string /* JSON to parse */) |
| 95 | 95 |
| 96 // Tells the utility process to get capabilities and defaults for the specified | 96 // 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 | 97 // 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 | 98 // crashes by executing this in a separate process. This does not run in a |
| 99 // sandbox. | 99 // sandbox. |
| 100 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, | 100 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_GetPrinterCapsAndDefaults, |
| 101 std::string /* printer name */) | 101 std::string /* printer name */) |
| 102 | 102 |
| 103 // Tell the utility process to create a zip file on the given list of files. |
| 104 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_CreateZipFile, |
| 105 FilePath /* src_dir */, |
| 106 std::vector<FilePath> /* src_relative_paths */, |
| 107 FilePath /* dest_file */) |
| 108 |
| 103 //------------------------------------------------------------------------------ | 109 //------------------------------------------------------------------------------ |
| 104 // Utility process host messages: | 110 // Utility process host messages: |
| 105 // These are messages from the utility process to the browser. | 111 // These are messages from the utility process to the browser. |
| 106 // Reply when the utility process is done unpacking an extension. |manifest| | 112 // Reply when the utility process is done unpacking an extension. |manifest| |
| 107 // is the parsed manifest.json file. | 113 // is the parsed manifest.json file. |
| 108 // The unpacker should also have written out files containing the decoded | 114 // The unpacker should also have written out files containing the decoded |
| 109 // images and message catalogs from the extension. See extensions::Unpacker for | 115 // images and message catalogs from the extension. See extensions::Unpacker for |
| 110 // details. | 116 // details. |
| 111 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, | 117 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded, |
| 112 DictionaryValue /* manifest */) | 118 DictionaryValue /* manifest */) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // capabilities and defaults. | 176 // capabilities and defaults. |
| 171 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 177 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
| 172 std::string /* printer name */, | 178 std::string /* printer name */, |
| 173 printing::PrinterCapsAndDefaults) | 179 printing::PrinterCapsAndDefaults) |
| 174 #endif | 180 #endif |
| 175 | 181 |
| 176 // Reply when the utility process has failed to obtain the printer | 182 // Reply when the utility process has failed to obtain the printer |
| 177 // capabilities and defaults. | 183 // capabilities and defaults. |
| 178 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 184 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
| 179 std::string /* printer name */) | 185 std::string /* printer name */) |
| 186 |
| 187 // Reply when the utility process has succeeded in creating the zip file. |
| 188 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) |
| 189 |
| 190 // Reply when an error occured in creating the zip file. |
| 191 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) |
| OLD | NEW |