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 // This header is meant to be included in multiple passes, hence no traditional | 8 // This header is meant to be included in multiple passes, hence no traditional |
9 // header guard. It is included by utility_messages_internal.h | 9 // header guard. It is included by utility_messages_internal.h |
10 // See ipc_message_macros.h for explanation of the macros and passes. | 10 // See ipc_message_macros.h for explanation of the macros and passes. |
(...skipping 30 matching lines...) Expand all Loading... |
41 // Tell the utility process to decode the given image data. | 41 // Tell the utility process to decode the given image data. |
42 IPC_MESSAGE_CONTROL1(UtilityMsg_DecodeImage, | 42 IPC_MESSAGE_CONTROL1(UtilityMsg_DecodeImage, |
43 std::vector<unsigned char>) // encoded image contents | 43 std::vector<unsigned char>) // encoded image contents |
44 | 44 |
45 // Tell the utility process to render the given PDF into a metafile. | 45 // Tell the utility process to render the given PDF into a metafile. |
46 IPC_MESSAGE_CONTROL4(UtilityMsg_RenderPDFPagesToMetafile, | 46 IPC_MESSAGE_CONTROL4(UtilityMsg_RenderPDFPagesToMetafile, |
47 base::PlatformFile, // PDF file | 47 base::PlatformFile, // PDF file |
48 gfx::Rect, // Render Area | 48 gfx::Rect, // Render Area |
49 int, // DPI | 49 int, // DPI |
50 std::vector<printing::PageRange>) | 50 std::vector<printing::PageRange>) |
| 51 |
| 52 // Tell the utility process to extract the given IDBKeyPath from the |
| 53 // SerializedScriptValue vector and reply with the corresponding IDBKeys. |
| 54 IPC_MESSAGE_CONTROL3(UtilityMsg_IDBKeysFromValuesAndKeyPath, |
| 55 int, // id |
| 56 std::vector<SerializedScriptValue>, |
| 57 string16) // IDBKeyPath |
| 58 |
| 59 // Tells the utility process that it's running in batch mode. |
| 60 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) |
| 61 |
| 62 // Tells the utility process that it can shutdown. |
| 63 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) |
| 64 |
51 IPC_END_MESSAGES(Utility) | 65 IPC_END_MESSAGES(Utility) |
52 | 66 |
53 //------------------------------------------------------------------------------ | 67 //------------------------------------------------------------------------------ |
54 // Utility process host messages: | 68 // Utility process host messages: |
55 // These are messages from the utility process to the browser. | 69 // These are messages from the utility process to the browser. |
56 IPC_BEGIN_MESSAGES(UtilityHost) | 70 IPC_BEGIN_MESSAGES(UtilityHost) |
57 | 71 |
58 // Reply when the utility process is done unpacking an extension. |manifest| | 72 // Reply when the utility process is done unpacking an extension. |manifest| |
59 // is the parsed manifest.json file. | 73 // is the parsed manifest.json file. |
60 // The unpacker should also have written out files containing the decoded | 74 // The unpacker should also have written out files containing the decoded |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Reply when an error occured rendering the PDF. | 118 // Reply when an error occured rendering the PDF. |
105 IPC_MESSAGE_CONTROL0(UtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 119 IPC_MESSAGE_CONTROL0(UtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
106 | 120 |
107 #if defined(OS_WIN) | 121 #if defined(OS_WIN) |
108 // Request that the given font be loaded by the host so it's cached by the | 122 // Request that the given font be loaded by the host so it's cached by the |
109 // OS. Please see ChildProcessHost::PreCacheFont for details. | 123 // OS. Please see ChildProcessHost::PreCacheFont for details. |
110 IPC_SYNC_MESSAGE_CONTROL1_0(UtilityHostMsg_PreCacheFont, | 124 IPC_SYNC_MESSAGE_CONTROL1_0(UtilityHostMsg_PreCacheFont, |
111 LOGFONT /* font data */) | 125 LOGFONT /* font data */) |
112 #endif // defined(OS_WIN) | 126 #endif // defined(OS_WIN) |
113 | 127 |
| 128 // Reply when the utility process has succeeded in obtaining the value for |
| 129 // IDBKeyPath. |
| 130 IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, |
| 131 int /* id */, |
| 132 std::vector<IndexedDBKey> /* value */) |
| 133 |
| 134 // Reply when the utility process has failed in obtaining the value for |
| 135 // IDBKeyPath. |
| 136 IPC_MESSAGE_CONTROL1(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, |
| 137 int /* id */) |
| 138 |
114 IPC_END_MESSAGES(UtilityHost) | 139 IPC_END_MESSAGES(UtilityHost) |
OLD | NEW |