OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 // Reply when the utility process has succeeded in rendering the PDF. | 139 // Reply when the utility process has succeeded in rendering the PDF. |
140 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, | 140 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded, |
141 int) // Highest rendered page number | 141 int) // Highest rendered page number |
142 | 142 |
143 // Reply when an error occured rendering the PDF. | 143 // Reply when an error occured rendering the PDF. |
144 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) | 144 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Failed) |
145 | 145 |
146 #if defined(OS_WIN) | 146 #if defined(OS_WIN) |
147 // Request that the given font be loaded by the host so it's cached by the | 147 // Request that the given font be loaded by the host so it's cached by the |
148 // OS. Please see ChildProcessHost::PreCacheFont for details. | 148 // OS. Please see ChildProcessHost::PreCacheFont for details. |
149 IPC_SYNC_MESSAGE_CONTROL1_0(ChromeUtilityHostMsg_PreCacheFont, | 149 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFont, |
150 LOGFONT /* font data */) | 150 LOGFONT /* font data */, |
151 int /*pid*/) | |
nsylvain
2011/09/13 19:32:18
should you really trust the renderer with the pid?
arthurhsu
2011/09/13 20:58:32
This one is a service utility process host, which
| |
152 | |
153 // Release the cached font | |
154 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ReleaseCachedFont, | |
155 int /*pid*/) | |
151 #endif // defined(OS_WIN) | 156 #endif // defined(OS_WIN) |
152 | 157 |
153 // Reply when the utility process successfully parsed a JSON string. | 158 // Reply when the utility process successfully parsed a JSON string. |
154 // | 159 // |
155 // WARNING: The result can be of any Value subclass type, but we can't easily | 160 // WARNING: The result can be of any Value subclass type, but we can't easily |
156 // pass indeterminate value types by const object reference with our IPC macros, | 161 // pass indeterminate value types by const object reference with our IPC macros, |
157 // so we put the result Value into a ListValue. Handlers should examine the | 162 // so we put the result Value into a ListValue. Handlers should examine the |
158 // first (and only) element of the ListValue for the actual result. | 163 // first (and only) element of the ListValue for the actual result. |
159 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, | 164 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, |
160 ListValue) | 165 ListValue) |
161 | 166 |
162 // Reply when the utility process failed in parsing a JSON string. | 167 // Reply when the utility process failed in parsing a JSON string. |
163 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, | 168 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, |
164 std::string /* error message, if any*/) | 169 std::string /* error message, if any*/) |
165 | 170 |
166 // Reply when the utility process has succeeded in obtaining the printer | 171 // Reply when the utility process has succeeded in obtaining the printer |
167 // capabilities and defaults. | 172 // capabilities and defaults. |
168 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 173 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
169 std::string /* printer name */, | 174 std::string /* printer name */, |
170 printing::PrinterCapsAndDefaults) | 175 printing::PrinterCapsAndDefaults) |
171 | 176 |
172 // Reply when the utility process has failed to obtain the printer | 177 // Reply when the utility process has failed to obtain the printer |
173 // capabilities and defaults. | 178 // capabilities and defaults. |
174 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 179 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
175 std::string /* printer name */) | 180 std::string /* printer name */) |
OLD | NEW |