| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "gfx/rect.h" | 9 #include "gfx/rect.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| 11 #include "printing/backend/print_backend.h" |
| 11 #include "printing/page_range.h" | 12 #include "printing/page_range.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 | 14 |
| 14 #define IPC_MESSAGE_START NaClMsgStart | 15 #define IPC_MESSAGE_START NaClMsgStart |
| 15 | 16 |
| 16 class FilePath; | 17 class FilePath; |
| 17 class IndexedDBKey; | 18 class IndexedDBKey; |
| 18 class SerializedScriptValue; | 19 class SerializedScriptValue; |
| 19 class SkBitmap; | 20 class SkBitmap; |
| 20 | 21 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 int, // id | 54 int, // id |
| 54 std::vector<SerializedScriptValue>, | 55 std::vector<SerializedScriptValue>, |
| 55 string16) // IDBKeyPath | 56 string16) // IDBKeyPath |
| 56 | 57 |
| 57 // Tells the utility process that it's running in batch mode. | 58 // Tells the utility process that it's running in batch mode. |
| 58 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) | 59 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) |
| 59 | 60 |
| 60 // Tells the utility process that it can shutdown. | 61 // Tells the utility process that it can shutdown. |
| 61 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) | 62 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) |
| 62 | 63 |
| 64 // Tells the utility process to get capabilities and defaults for the specified |
| 65 // printer. Used on Windows to isolate the service process from printer driver |
| 66 // crashes by executing this in a separate process. This does not run in a |
| 67 // sandbox. |
| 68 IPC_MESSAGE_CONTROL1(UtilityMsg_GetPrinterCapsAndDefaults, |
| 69 std::string /* printer name */) |
| 70 |
| 63 //------------------------------------------------------------------------------ | 71 //------------------------------------------------------------------------------ |
| 64 // Utility process host messages: | 72 // Utility process host messages: |
| 65 // These are messages from the utility process to the browser. | 73 // These are messages from the utility process to the browser. |
| 66 // Reply when the utility process is done unpacking an extension. |manifest| | 74 // Reply when the utility process is done unpacking an extension. |manifest| |
| 67 // is the parsed manifest.json file. | 75 // is the parsed manifest.json file. |
| 68 // The unpacker should also have written out files containing the decoded | 76 // The unpacker should also have written out files containing the decoded |
| 69 // images and message catalogs from the extension. See ExtensionUnpacker for | 77 // images and message catalogs from the extension. See ExtensionUnpacker for |
| 70 // details. | 78 // details. |
| 71 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackExtension_Succeeded, | 79 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackExtension_Succeeded, |
| 72 DictionaryValue /* manifest */) | 80 DictionaryValue /* manifest */) |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Reply when the utility process has succeeded in obtaining the value for | 129 // Reply when the utility process has succeeded in obtaining the value for |
| 122 // IDBKeyPath. | 130 // IDBKeyPath. |
| 123 IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, | 131 IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, |
| 124 int /* id */, | 132 int /* id */, |
| 125 std::vector<IndexedDBKey> /* value */) | 133 std::vector<IndexedDBKey> /* value */) |
| 126 | 134 |
| 127 // Reply when the utility process has failed in obtaining the value for | 135 // Reply when the utility process has failed in obtaining the value for |
| 128 // IDBKeyPath. | 136 // IDBKeyPath. |
| 129 IPC_MESSAGE_CONTROL1(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, | 137 IPC_MESSAGE_CONTROL1(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, |
| 130 int /* id */) | 138 int /* id */) |
| 139 |
| 140 // Reply when the utility process has succeeded in obtaining the printer |
| 141 // capabilities and defaults. |
| 142 IPC_MESSAGE_CONTROL2(UtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
| 143 std::string /* printer name */, |
| 144 printing::PrinterCapsAndDefaults) |
| 145 |
| 146 // Reply when the utility process has failed to obtain the printer |
| 147 // capabilities and defaults. |
| 148 IPC_MESSAGE_CONTROL1(UtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
| 149 std::string /* printer name */) |
| 150 |
| OLD | NEW |