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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // pass indeterminate value types by const object reference with our IPC macros, | 154 // pass indeterminate value types by const object reference with our IPC macros, |
155 // so we put the result Value into a ListValue. Handlers should examine the | 155 // so we put the result Value into a ListValue. Handlers should examine the |
156 // first (and only) element of the ListValue for the actual result. | 156 // first (and only) element of the ListValue for the actual result. |
157 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, | 157 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, |
158 ListValue) | 158 ListValue) |
159 | 159 |
160 // Reply when the utility process failed in parsing a JSON string. | 160 // Reply when the utility process failed in parsing a JSON string. |
161 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, | 161 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, |
162 std::string /* error message, if any*/) | 162 std::string /* error message, if any*/) |
163 | 163 |
| 164 #if defined(ENABLE_PRINTING) |
164 // Reply when the utility process has succeeded in obtaining the printer | 165 // Reply when the utility process has succeeded in obtaining the printer |
165 // capabilities and defaults. | 166 // capabilities and defaults. |
166 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 167 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
167 std::string /* printer name */, | 168 std::string /* printer name */, |
168 printing::PrinterCapsAndDefaults) | 169 printing::PrinterCapsAndDefaults) |
| 170 #endif |
169 | 171 |
170 // Reply when the utility process has failed to obtain the printer | 172 // Reply when the utility process has failed to obtain the printer |
171 // capabilities and defaults. | 173 // capabilities and defaults. |
172 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 174 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
173 std::string /* printer name */) | 175 std::string /* printer name */) |
OLD | NEW |