Chromium Code Reviews| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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_CONTROL1_0(ChromeUtilityHostMsg_PreCacheFont, |
| 150 LOGFONT /* font data */) | 150 LOGFONT /* font data */) |
| 151 | |
| 152 // Release the cached font | |
| 153 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ReleaseCachedFonts) | |
|
jam
2011/09/15 16:18:23
instead of declaring this message for utility/rend
arthurhsu
2011/09/16 02:14:06
Done.
| |
| 151 #endif // defined(OS_WIN) | 154 #endif // defined(OS_WIN) |
| 152 | 155 |
| 153 // Reply when the utility process successfully parsed a JSON string. | 156 // Reply when the utility process successfully parsed a JSON string. |
| 154 // | 157 // |
| 155 // WARNING: The result can be of any Value subclass type, but we can't easily | 158 // 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, | 159 // 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 | 160 // 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. | 161 // first (and only) element of the ListValue for the actual result. |
| 159 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, | 162 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, |
| 160 ListValue) | 163 ListValue) |
| 161 | 164 |
| 162 // Reply when the utility process failed in parsing a JSON string. | 165 // Reply when the utility process failed in parsing a JSON string. |
| 163 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, | 166 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, |
| 164 std::string /* error message, if any*/) | 167 std::string /* error message, if any*/) |
| 165 | 168 |
| 166 // Reply when the utility process has succeeded in obtaining the printer | 169 // Reply when the utility process has succeeded in obtaining the printer |
| 167 // capabilities and defaults. | 170 // capabilities and defaults. |
| 168 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 171 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
| 169 std::string /* printer name */, | 172 std::string /* printer name */, |
| 170 printing::PrinterCapsAndDefaults) | 173 printing::PrinterCapsAndDefaults) |
| 171 | 174 |
| 172 // Reply when the utility process has failed to obtain the printer | 175 // Reply when the utility process has failed to obtain the printer |
| 173 // capabilities and defaults. | 176 // capabilities and defaults. |
| 174 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 177 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
| 175 std::string /* printer name */) | 178 std::string /* printer name */) |
| OLD | NEW |