Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/common/chrome_utility_messages.h

Issue 1140053003: Refactoring: Moving the SafeJsonParser to its own component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Catching up with WebstoreInstallHelper changes Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <Windows.h> 8 #include <Windows.h>
9 #endif // defined(OS_WIN) 9 #endif // defined(OS_WIN)
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 IPC_STRUCT_MEMBER(base::FilePath, suggested_filename) 118 IPC_STRUCT_MEMBER(base::FilePath, suggested_filename)
119 IPC_STRUCT_MEMBER(base::FilePath, initial_directory) 119 IPC_STRUCT_MEMBER(base::FilePath, initial_directory)
120 IPC_STRUCT_MEMBER(base::string16, default_extension) 120 IPC_STRUCT_MEMBER(base::string16, default_extension)
121 IPC_STRUCT_END() 121 IPC_STRUCT_END()
122 #endif // OS_WIN 122 #endif // OS_WIN
123 123
124 //------------------------------------------------------------------------------ 124 //------------------------------------------------------------------------------
125 // Utility process messages: 125 // Utility process messages:
126 // These are messages from the browser to the utility process. 126 // These are messages from the browser to the utility process.
127 127
128 // Tell the utility process to parse a JSON string into a Value object.
129 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON,
130 std::string /* JSON to parse */)
131
132 // Tell the utility process to decode the given image data. 128 // Tell the utility process to decode the given image data.
133 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_DecodeImage, 129 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_DecodeImage,
134 std::vector<unsigned char> /* encoded image contents */, 130 std::vector<unsigned char> /* encoded image contents */,
135 bool /* shrink image if needed for IPC msg limit */, 131 bool /* shrink image if needed for IPC msg limit */,
136 int /* delegate id */) 132 int /* delegate id */)
137 133
138 #if defined(OS_CHROMEOS) 134 #if defined(OS_CHROMEOS)
139 // Tell the utility process to decode the given JPEG image data with a robust 135 // Tell the utility process to decode the given JPEG image data with a robust
140 // libjpeg codec. 136 // libjpeg codec.
141 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RobustJPEGDecodeImage, 137 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RobustJPEGDecodeImage,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Instructs the utility process to detect support for seccomp-bpf, 208 // Instructs the utility process to detect support for seccomp-bpf,
213 // and the result is reported through 209 // and the result is reported through
214 // ChromeUtilityHostMsg_DetectSeccompSupport_Result. 210 // ChromeUtilityHostMsg_DetectSeccompSupport_Result.
215 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_DetectSeccompSupport) 211 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_DetectSeccompSupport)
216 #endif 212 #endif
217 213
218 //------------------------------------------------------------------------------ 214 //------------------------------------------------------------------------------
219 // Utility process host messages: 215 // Utility process host messages:
220 // These are messages from the utility process to the browser. 216 // These are messages from the utility process to the browser.
221 217
222 // Reply when the utility process successfully parsed a JSON string.
223 //
224 // WARNING: The result can be of any Value subclass type, but we can't easily
225 // pass indeterminate value types by const object reference with our IPC macros,
226 // so we put the result Value into a ListValue. Handlers should examine the
227 // first (and only) element of the ListValue for the actual result.
228 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded,
229 base::ListValue)
230
231 // Reply when the utility process failed in parsing a JSON string.
232 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed,
233 std::string /* error message, if any*/)
234
235 // Reply when the utility process has failed while unpacking and parsing a 218 // Reply when the utility process has failed while unpacking and parsing a
236 // web resource. |error_message| is a user-readable explanation of what 219 // web resource. |error_message| is a user-readable explanation of what
237 // went wrong. 220 // went wrong.
238 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, 221 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed,
239 std::string /* error_message, if any */) 222 std::string /* error_message, if any */)
240 223
241 // Reply when the utility process has succeeded in decoding the image. 224 // Reply when the utility process has succeeded in decoding the image.
242 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_DecodeImage_Succeeded, 225 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_DecodeImage_Succeeded,
243 SkBitmap /* decoded image */, 226 SkBitmap /* decoded image */,
244 int /* delegate id */) 227 int /* delegate id */)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, 263 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache,
281 base::FilePath /* cache file path */) 264 base::FilePath /* cache file path */)
282 #endif // defined(OS_WIN) 265 #endif // defined(OS_WIN)
283 266
284 #if defined(OS_ANDROID) 267 #if defined(OS_ANDROID)
285 // Reply to ChromeUtilityMsg_DetectSeccompSupport to report the level 268 // Reply to ChromeUtilityMsg_DetectSeccompSupport to report the level
286 // of kernel support for seccomp-bpf. 269 // of kernel support for seccomp-bpf.
287 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultPrctl, 270 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DetectSeccompSupport_ResultPrctl,
288 bool /* seccomp prctl supported */) 271 bool /* seccomp prctl supported */)
289 #endif 272 #endif
OLDNEW
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698