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

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

Issue 7631063: Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
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 file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 IPC_STRUCT_TRAITS_MEMBER(capacity) 124 IPC_STRUCT_TRAITS_MEMBER(capacity)
125 IPC_STRUCT_TRAITS_MEMBER(liveSize) 125 IPC_STRUCT_TRAITS_MEMBER(liveSize)
126 IPC_STRUCT_TRAITS_MEMBER(deadSize) 126 IPC_STRUCT_TRAITS_MEMBER(deadSize)
127 IPC_STRUCT_TRAITS_END() 127 IPC_STRUCT_TRAITS_END()
128 128
129 //----------------------------------------------------------------------------- 129 //-----------------------------------------------------------------------------
130 // RenderView messages 130 // RenderView messages
131 // These are messages sent from the browser to the renderer process. 131 // These are messages sent from the browser to the renderer process.
132 132
133 // Tells the renderer to set its maximum cache size to the supplied value. 133 // Tells the renderer to set its maximum cache size to the supplied value.
134 IPC_MESSAGE_CONTROL3(ViewMsg_SetCacheCapacities, 134 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
135 size_t /* min_dead_capacity */, 135 size_t /* min_dead_capacity */,
136 size_t /* max_dead_capacity */, 136 size_t /* max_dead_capacity */,
137 size_t /* capacity */) 137 size_t /* capacity */)
138 138
139 // Tells the renderer to clear the cache. 139 // Tells the renderer to clear the cache.
140 IPC_MESSAGE_CONTROL0(ViewMsg_ClearCache) 140 IPC_MESSAGE_CONTROL0(ChromeViewMsg_ClearCache)
141 141
142 // Tells the renderer to dump as much memory as it can, perhaps because we 142 // Tells the renderer to dump as much memory as it can, perhaps because we
143 // have memory pressure or the renderer is (or will be) paged out. This 143 // have memory pressure or the renderer is (or will be) paged out. This
144 // should only result in purging objects we can recalculate, e.g. caches or 144 // should only result in purging objects we can recalculate, e.g. caches or
145 // JS garbage, not in purging irreplaceable objects. 145 // JS garbage, not in purging irreplaceable objects.
146 IPC_MESSAGE_CONTROL0(ViewMsg_PurgeMemory) 146 IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory)
147 147
148 // For WebUI testing, this message stores parameters to do ScriptEvalRequest at 148 // For WebUI testing, this message stores parameters to do ScriptEvalRequest at
149 // a time which is late enough to not be thrown out, and early enough to be 149 // a time which is late enough to not be thrown out, and early enough to be
150 // before onload events are fired. 150 // before onload events are fired.
151 IPC_MESSAGE_ROUTED4(ViewMsg_WebUIJavaScript, 151 IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript,
152 string16, /* frame_xpath */ 152 string16, /* frame_xpath */
153 string16, /* jscript_url */ 153 string16, /* jscript_url */
154 int, /* ID */ 154 int, /* ID */
155 bool /* If true, result is sent back. */) 155 bool /* If true, result is sent back. */)
156 156
157 // Tells the render view to capture a thumbnail image of the page. The 157 // Tells the render view to capture a thumbnail image of the page. The
158 // render view responds with a ViewHostMsg_Snapshot. 158 // render view responds with a ChromeViewHostMsg_Snapshot.
159 IPC_MESSAGE_ROUTED0(ViewMsg_CaptureSnapshot) 159 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CaptureSnapshot)
160 160
161 // History system notification that the visited link database has been 161 // History system notification that the visited link database has been
162 // replaced. It has one SharedMemoryHandle argument consisting of the table 162 // replaced. It has one SharedMemoryHandle argument consisting of the table
163 // handle. This handle is valid in the context of the renderer 163 // handle. This handle is valid in the context of the renderer
164 IPC_MESSAGE_CONTROL1(ViewMsg_VisitedLink_NewTable, base::SharedMemoryHandle) 164 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_NewTable,
165 base::SharedMemoryHandle)
165 166
166 // History system notification that a link has been added and the link 167 // History system notification that a link has been added and the link
167 // coloring state for the given hash must be re-calculated. 168 // coloring state for the given hash must be re-calculated.
168 IPC_MESSAGE_CONTROL1(ViewMsg_VisitedLink_Add, std::vector<uint64>) 169 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_Add, std::vector<uint64>)
169 170
170 // History system notification that one or more history items have been 171 // History system notification that one or more history items have been
171 // deleted, which at this point means that all link coloring state must be 172 // deleted, which at this point means that all link coloring state must be
172 // re-calculated. 173 // re-calculated.
173 IPC_MESSAGE_CONTROL0(ViewMsg_VisitedLink_Reset) 174 IPC_MESSAGE_CONTROL0(ChromeViewMsg_VisitedLink_Reset)
174 175
175 // Set the content settings for a particular url that the renderer is in the 176 // Set the content settings for a particular url that the renderer is in the
176 // process of loading. This will be stored, to be used if the load commits 177 // process of loading. This will be stored, to be used if the load commits
177 // and ignored otherwise. 178 // and ignored otherwise.
178 IPC_MESSAGE_ROUTED2(ViewMsg_SetContentSettingsForLoadingURL, 179 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SetContentSettingsForLoadingURL,
179 GURL /* url */, 180 GURL /* url */,
180 ContentSettings /* content_settings */) 181 ContentSettings /* content_settings */)
181 182
182 // Set the content settings for a particular url, so all render views 183 // Set the content settings for a particular url, so all render views
183 // displaying this host url update their content settings to match. 184 // displaying this host url update their content settings to match.
184 IPC_MESSAGE_CONTROL2(ViewMsg_SetContentSettingsForCurrentURL, 185 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetContentSettingsForCurrentURL,
185 GURL /* url */, 186 GURL /* url */,
186 ContentSettings /* content_settings */) 187 ContentSettings /* content_settings */)
187 188
188 // Set the content settings for a particular url that the renderer is in the 189 // Set the content settings for a particular url that the renderer is in the
189 // process of loading. This will be stored, to be used if the load commits 190 // process of loading. This will be stored, to be used if the load commits
190 // and ignored otherwise. 191 // and ignored otherwise.
191 IPC_MESSAGE_CONTROL1(ViewMsg_SetDefaultContentSettings, 192 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetDefaultContentSettings,
192 ContentSettings /* content_settings */) 193 ContentSettings /* content_settings */)
193 194
194 // Tells the render view to load all blocked plugins. 195 // Tells the render view to load all blocked plugins.
195 IPC_MESSAGE_ROUTED0(ViewMsg_LoadBlockedPlugins) 196 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins)
196 197
197 // Asks the renderer to send back stats on the WebCore cache broken down by 198 // Asks the renderer to send back stats on the WebCore cache broken down by
198 // resource types. 199 // resource types.
199 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats) 200 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
200 201
201 // Asks the renderer to send back Histograms. 202 // Asks the renderer to send back Histograms.
202 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms, 203 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms,
203 int /* sequence number of Renderer Histograms. */) 204 int /* sequence number of Renderer Histograms. */)
204 205
205 // Tells the renderer to create a FieldTrial, and by using a 100% probability 206 // Tells the renderer to create a FieldTrial, and by using a 100% probability
206 // for the FieldTrial, forces the FieldTrial to have assigned group name. 207 // for the FieldTrial, forces the FieldTrial to have assigned group name.
207 IPC_MESSAGE_CONTROL2(ViewMsg_SetFieldTrialGroup, 208 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
208 std::string /* field trial name */, 209 std::string /* field trial name */,
209 std::string /* group name that was assigned. */) 210 std::string /* group name that was assigned. */)
210 211
211 #if defined(USE_TCMALLOC) 212 #if defined(USE_TCMALLOC)
212 // Asks the renderer to send back tcmalloc stats. 213 // Asks the renderer to send back tcmalloc stats.
213 IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc) 214 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetRendererTcmalloc)
214 // Asks the renderer to enable/disable Tcmalloc heap profiling. 215 // Asks the renderer to enable/disable Tcmalloc heap profiling.
215 // Note: filename_prefix arg is effectively ignored since the render process 216 // Note: filename_prefix arg is effectively ignored since the render process
216 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile 217 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile
217 // to write a profile file. 218 // to write a profile file.
218 IPC_MESSAGE_CONTROL2(ViewMsg_SetTcmallocHeapProfiling, 219 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetTcmallocHeapProfiling,
219 bool /* enable profiling */, 220 bool /* enable profiling */,
220 std::string /* filename prefix for profiles */) 221 std::string /* filename prefix for profiles */)
221 // Asks the renderer to write the Tcmalloc heap profile to a file. 222 // Asks the renderer to write the Tcmalloc heap profile to a file.
222 IPC_MESSAGE_CONTROL1(ViewMsg_WriteTcmallocHeapProfile, 223 IPC_MESSAGE_CONTROL1(ChromeViewMsg_WriteTcmallocHeapProfile,
223 FilePath::StringType /* filepath */) 224 FilePath::StringType /* filepath */)
224 #endif 225 #endif
225 226
226 // Asks the renderer to send back V8 heap stats. 227 // Asks the renderer to send back V8 heap stats.
227 IPC_MESSAGE_CONTROL0(ViewMsg_GetV8HeapStats) 228 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats)
228 229
229 // Posts a message to the renderer. 230 // Posts a message to the renderer.
230 IPC_MESSAGE_ROUTED3(ViewMsg_HandleMessageFromExternalHost, 231 IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost,
231 std::string /* The message */, 232 std::string /* The message */,
232 std::string /* The origin */, 233 std::string /* The origin */,
233 std::string /* The target*/) 234 std::string /* The target*/)
234 235
235 IPC_MESSAGE_ROUTED4(ViewMsg_SearchBoxChange, 236 IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange,
236 string16 /* value */, 237 string16 /* value */,
237 bool /* verbatim */, 238 bool /* verbatim */,
238 int /* selection_start */, 239 int /* selection_start */,
239 int /* selection_end */) 240 int /* selection_end */)
240 IPC_MESSAGE_ROUTED2(ViewMsg_SearchBoxSubmit, 241 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
241 string16 /* value */, 242 string16 /* value */,
242 bool /* verbatim */) 243 bool /* verbatim */)
243 IPC_MESSAGE_ROUTED0(ViewMsg_SearchBoxCancel) 244 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxCancel)
244 IPC_MESSAGE_ROUTED1(ViewMsg_SearchBoxResize, 245 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxResize,
245 gfx::Rect /* search_box_bounds */) 246 gfx::Rect /* search_box_bounds */)
246 IPC_MESSAGE_ROUTED4(ViewMsg_DetermineIfPageSupportsInstant, 247 IPC_MESSAGE_ROUTED4(ChromeViewMsg_DetermineIfPageSupportsInstant,
247 string16 /* value*/, 248 string16 /* value*/,
248 bool /* verbatim */, 249 bool /* verbatim */,
249 int /* selection_start */, 250 int /* selection_start */,
250 int /* selection_end */) 251 int /* selection_end */)
251 252
252 // Tells the renderer to translate the page contents from one language to 253 // Tells the renderer to translate the page contents from one language to
253 // another. 254 // another.
254 IPC_MESSAGE_ROUTED4(ViewMsg_TranslatePage, 255 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage,
255 int /* page id */, 256 int /* page id */,
256 std::string, /* the script injected in the page */ 257 std::string, /* the script injected in the page */
257 std::string, /* BCP 47/RFC 5646 language code the page 258 std::string, /* BCP 47/RFC 5646 language code the page
258 is in */ 259 is in */
259 std::string /* BCP 47/RFC 5646 language code to translate 260 std::string /* BCP 47/RFC 5646 language code to translate
260 to */) 261 to */)
261 262
262 // Tells the renderer to revert the text of translated page to its original 263 // Tells the renderer to revert the text of translated page to its original
263 // contents. 264 // contents.
264 IPC_MESSAGE_ROUTED1(ViewMsg_RevertTranslation, 265 IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation,
265 int /* page id */) 266 int /* page id */)
266 267
267 // Tells a renderer if it's currently being prerendered. Must only be set 268 // Tells a renderer if it's currently being prerendered. Must only be set
268 // to true before any navigation occurs, and only set to false at most once 269 // to true before any navigation occurs, and only set to false at most once
269 // after that. 270 // after that.
270 IPC_MESSAGE_ROUTED1(ViewMsg_SetIsPrerendering, 271 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetIsPrerendering,
271 bool /* whether the RenderView is prerendering */) 272 bool /* whether the RenderView is prerendering */)
272 273
273 // Sent on process startup to indicate whether this process is running in 274 // Sent on process startup to indicate whether this process is running in
274 // incognito mode. 275 // incognito mode.
275 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess, 276 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
276 bool /* is_incognito_processs */) 277 bool /* is_incognito_processs */)
277 278
278 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. 279 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
279 IPC_MESSAGE_ROUTED1(ViewMsg_SetAllowDisplayingInsecureContent, 280 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
280 bool /* allowed */) 281 bool /* allowed */)
281 282
282 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. 283 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
283 IPC_MESSAGE_ROUTED1(ViewMsg_SetAllowRunningInsecureContent, 284 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
284 bool /* allowed */) 285 bool /* allowed */)
285 286
286 // Sent when the profile changes the kSafeBrowsingEnabled preference. 287 // Sent when the profile changes the kSafeBrowsingEnabled preference.
287 IPC_MESSAGE_ROUTED1(ViewMsg_SetClientSidePhishingDetection, 288 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
288 bool /* enable_phishing_detection */) 289 bool /* enable_phishing_detection */)
289 290
290 //----------------------------------------------------------------------------- 291 //-----------------------------------------------------------------------------
291 // TabContents messages 292 // TabContents messages
292 // These are messages sent from the renderer to the browser process. 293 // These are messages sent from the renderer to the browser process.
293 294
294 // Provides the contents for the given page that was loaded recently. 295 // Provides the contents for the given page that was loaded recently.
295 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageContents, 296 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
296 GURL /* URL of the page */, 297 GURL /* URL of the page */,
297 int32 /* page id */, 298 int32 /* page id */,
298 string16 /* page contents */) 299 string16 /* page contents */)
299 300
300 // Notification that the language for the tab has been determined. 301 // Notification that the language for the tab has been determined.
301 IPC_MESSAGE_ROUTED2(ViewHostMsg_TranslateLanguageDetermined, 302 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
302 std::string /* page ISO639_1 language code */, 303 std::string /* page ISO639_1 language code */,
303 bool /* whether the page can be translated */) 304 bool /* whether the page can be translated */)
304 305
305 IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats, 306 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
306 WebKit::WebCache::UsageStats /* stats */) 307 WebKit::WebCache::UsageStats /* stats */)
307 308
308 // Tells the browser that content in the current page was blocked due to the 309 // Tells the browser that content in the current page was blocked due to the
309 // user's content settings. 310 // user's content settings.
310 IPC_MESSAGE_ROUTED2(ViewHostMsg_ContentBlocked, 311 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
311 ContentSettingsType, /* type of blocked content */ 312 ContentSettingsType, /* type of blocked content */
312 std::string /* resource identifier */) 313 std::string /* resource identifier */)
313 314
314 // Sent by the renderer process to check whether access to web databases is 315 // Sent by the renderer process to check whether access to web databases is
315 // granted by content settings. 316 // granted by content settings.
316 IPC_SYNC_MESSAGE_CONTROL5_1(ViewHostMsg_AllowDatabase, 317 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
317 int /* render_view_id */, 318 int /* render_view_id */,
318 GURL /* origin_url */, 319 GURL /* origin_url */,
319 GURL /* top origin url */, 320 GURL /* top origin url */,
320 string16 /* database name */, 321 string16 /* database name */,
321 string16 /* database display name */, 322 string16 /* database display name */,
322 bool /* allowed */) 323 bool /* allowed */)
323 324
324 // Sent by the renderer process to check whether access to DOM Storage is 325 // Sent by the renderer process to check whether access to DOM Storage is
325 // granted by content settings. 326 // granted by content settings.
326 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_AllowDOMStorage, 327 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
327 int /* render_view_id */, 328 int /* render_view_id */,
328 GURL /* origin_url */, 329 GURL /* origin_url */,
329 GURL /* top origin url */, 330 GURL /* top origin url */,
330 DOMStorageType /* type */, 331 DOMStorageType /* type */,
331 bool /* allowed */) 332 bool /* allowed */)
332 333
333 // Sent by the renderer process to check whether access to FileSystem is 334 // Sent by the renderer process to check whether access to FileSystem is
334 // granted by content settings. 335 // granted by content settings.
335 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_AllowFileSystem, 336 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem,
336 int /* render_view_id */, 337 int /* render_view_id */,
337 GURL /* origin_url */, 338 GURL /* origin_url */,
338 GURL /* top origin url */, 339 GURL /* top origin url */,
339 bool /* allowed */) 340 bool /* allowed */)
340 341
341 // Sent by the renderer process to check whether access to Indexed DBis 342 // Sent by the renderer process to check whether access to Indexed DBis
342 // granted by content settings. 343 // granted by content settings.
343 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_AllowIndexedDB, 344 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
344 int /* render_view_id */, 345 int /* render_view_id */,
345 GURL /* origin_url */, 346 GURL /* origin_url */,
346 GURL /* top origin url */, 347 GURL /* top origin url */,
347 string16 /* database name */, 348 string16 /* database name */,
348 bool /* allowed */) 349 bool /* allowed */)
349 350
350 // Gets the content setting for a plugin. 351 // Gets the content setting for a plugin.
351 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is 352 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is
352 // blocked by the content settings for |policy_url|. It still 353 // blocked by the content settings for |policy_url|. It still
353 // appears in navigator.plugins in Javascript though, and can be 354 // appears in navigator.plugins in Javascript though, and can be
354 // loaded via click-to-play. 355 // loaded via click-to-play.
355 // 356 //
356 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is 357 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is
357 // explicitly white-listed for the plug-in, or the user has chosen 358 // explicitly white-listed for the plug-in, or the user has chosen
358 // not to block nonsandboxed plugins. 359 // not to block nonsandboxed plugins.
359 // 360 //
360 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is 361 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is
361 // neither blocked nor white-listed, which means that it's allowed 362 // neither blocked nor white-listed, which means that it's allowed
362 // by default and can still be blocked if it's non-sandboxed. 363 // by default and can still be blocked if it's non-sandboxed.
363 // 364 //
364 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_GetPluginContentSetting, 365 IPC_SYNC_MESSAGE_CONTROL2_1(ChromeViewHostMsg_GetPluginContentSetting,
365 GURL /* policy_url */, 366 GURL /* policy_url */,
366 std::string /* resource */, 367 std::string /* resource */,
367 ContentSetting /* setting */) 368 ContentSetting /* setting */)
368 369
369 // Specifies the URL as the first parameter (a wstring) and thumbnail as 370 // Specifies the URL as the first parameter (a wstring) and thumbnail as
370 // binary data as the second parameter. 371 // binary data as the second parameter.
371 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail, 372 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_Thumbnail,
372 GURL /* url */, 373 GURL /* url */,
373 ThumbnailScore /* score */, 374 ThumbnailScore /* score */,
374 SkBitmap /* bitmap */) 375 SkBitmap /* bitmap */)
375 376
376 // Send a snapshot of the tab contents to the render host. 377 // Send a snapshot of the tab contents to the render host.
377 IPC_MESSAGE_ROUTED1(ViewHostMsg_Snapshot, 378 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot,
378 SkBitmap /* bitmap */) 379 SkBitmap /* bitmap */)
379 380
380 // Following message is used to communicate the values received by the 381 // Following message is used to communicate the values received by the
381 // callback binding the JS to Cpp. 382 // callback binding the JS to Cpp.
382 // An instance of browser that has an automation host listening to it can 383 // An instance of browser that has an automation host listening to it can
383 // have a javascript send a native value (string, number, boolean) to the 384 // have a javascript send a native value (string, number, boolean) to the
384 // listener in Cpp. (DomAutomationController) 385 // listener in Cpp. (DomAutomationController)
385 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 386 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_DomOperationResponse,
386 std::string /* json_string */, 387 std::string /* json_string */,
387 int /* automation_id */) 388 int /* automation_id */)
388 389
389 // A message for an external host. 390 // A message for an external host.
390 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, 391 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
391 std::string /* message */, 392 std::string /* message */,
392 std::string /* origin */, 393 std::string /* origin */,
393 std::string /* target */) 394 std::string /* target */)
394 395
395 // A renderer sends this to the browser process when it wants to start 396 // A renderer sends this to the browser process when it wants to start
396 // a new instance of the Native Client process. The browser will launch 397 // a new instance of the Native Client process. The browser will launch
397 // the process and return a handle to an IMC channel. 398 // the process and return a handle to an IMC channel.
398 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_LaunchNaCl, 399 IPC_SYNC_MESSAGE_CONTROL2_3(ChromeViewHostMsg_LaunchNaCl,
399 std::wstring /* url for the NaCl module */, 400 std::wstring /* url for the NaCl module */,
400 int /* socket count */, 401 int /* socket count */,
401 std::vector<nacl::FileDescriptor> 402 std::vector<nacl::FileDescriptor>
402 /* imc channel handles */, 403 /* imc channel handles */,
403 base::ProcessHandle /* NaCl process handle */, 404 base::ProcessHandle /* NaCl process handle */,
404 base::ProcessId /* NaCl process id */) 405 base::ProcessId /* NaCl process id */)
405 406
406 // Notification that the page has an OpenSearch description document 407 // Notification that the page has an OpenSearch description document
407 // associated with it. 408 // associated with it.
408 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageHasOSDD, 409 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
409 int32 /* page_id */, 410 int32 /* page_id */,
410 GURL /* url of OS description document */, 411 GURL /* url of OS description document */,
411 search_provider::OSDDType) 412 search_provider::OSDDType)
412 413
413 // Find out if the given url's security origin is installed as a search 414 // Find out if the given url's security origin is installed as a search
414 // provider. 415 // provider.
415 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetSearchProviderInstallState, 416 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
416 GURL /* page url */, 417 GURL /* page url */,
417 GURL /* inquiry url */, 418 GURL /* inquiry url */,
418 search_provider::InstallState /* install */) 419 search_provider::InstallState /* install */)
419 420
420 // Send back histograms as vector of pickled-histogram strings. 421 // Send back histograms as vector of pickled-histogram strings.
421 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererHistograms, 422 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms,
422 int, /* sequence number of Renderer Histograms. */ 423 int, /* sequence number of Renderer Histograms. */
423 std::vector<std::string>) 424 std::vector<std::string>)
424 425
425 #if defined USE_TCMALLOC 426 #if defined USE_TCMALLOC
426 // Send back tcmalloc stats output. 427 // Send back tcmalloc stats output.
427 IPC_MESSAGE_CONTROL1(ViewHostMsg_RendererTcmalloc, 428 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_RendererTcmalloc,
428 std::string /* tcmalloc debug output */) 429 std::string /* tcmalloc debug output */)
429 // Send back tcmalloc profile to write to a file. 430 // Send back tcmalloc profile to write to a file.
430 IPC_MESSAGE_CONTROL2(ViewHostMsg_WriteTcmallocHeapProfile_ACK, 431 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK,
431 FilePath::StringType /* filepath */, 432 FilePath::StringType /* filepath */,
432 std::string /* heap profile */) 433 std::string /* heap profile */)
433 #endif 434 #endif
434 435
435 // Sends back stats about the V8 heap. 436 // Sends back stats about the V8 heap.
436 IPC_MESSAGE_CONTROL2(ViewHostMsg_V8HeapStats, 437 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
437 int /* size of heap (allocated from the OS) */, 438 int /* size of heap (allocated from the OS) */,
438 int /* bytes in use */) 439 int /* bytes in use */)
439 440
440 // Request for a DNS prefetch of the names in the array. 441 // Request for a DNS prefetch of the names in the array.
441 // NameList is typedef'ed std::vector<std::string> 442 // NameList is typedef'ed std::vector<std::string>
442 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, 443 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
443 std::vector<std::string> /* hostnames */) 444 std::vector<std::string> /* hostnames */)
444 445
445 // Requests the plugin policies. 446 // Requests the plugin policies.
446 // 447 //
447 // |outdated_policy| determines what to do about outdated plugins. 448 // |outdated_policy| determines what to do about outdated plugins.
448 // |authorize_policy| determines what to do about plugins that require 449 // |authorize_policy| determines what to do about plugins that require
449 // authorization to run. 450 // authorization to run.
450 // 451 //
451 // Both values can be ALLOW or ASK. |outdated_policy| can also be BLOCK. 452 // Both values can be ALLOW or ASK. |outdated_policy| can also be BLOCK.
452 // Anything else is an error. 453 // Anything else is an error.
453 // ALLOW means that the plugin should just run, as a normal plugin. 454 // ALLOW means that the plugin should just run, as a normal plugin.
454 // BLOCK means that the plugin should not run nor be allowed to run at all. 455 // BLOCK means that the plugin should not run nor be allowed to run at all.
455 // ASK means that the plugin should be initially blocked and the user should 456 // ASK means that the plugin should be initially blocked and the user should
456 // be asked whether he wants to run the plugin. 457 // be asked whether he wants to run the plugin.
457 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetPluginPolicies, 458 IPC_SYNC_MESSAGE_CONTROL0_2(ChromeViewHostMsg_GetPluginPolicies,
458 ContentSetting /* outdated_policy */, 459 ContentSetting /* outdated_policy */,
459 ContentSetting /* authorize_policy */) 460 ContentSetting /* authorize_policy */)
460 461
461 // Notifies when a plugin couldn't be loaded because it's outdated. 462 // Notifies when a plugin couldn't be loaded because it's outdated.
462 IPC_MESSAGE_ROUTED2(ViewHostMsg_BlockedOutdatedPlugin, 463 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
463 string16, /* name */ 464 string16, /* name */
464 GURL /* update_url */) 465 GURL /* update_url */)
465 466
466 // Provide the browser process with information about the WebCore resource 467 // Provide the browser process with information about the WebCore resource
467 // cache and current renderer framerate. 468 // cache and current renderer framerate.
468 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, 469 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
469 WebKit::WebCache::ResourceTypeStats) 470 WebKit::WebCache::ResourceTypeStats)
470 471
471 472
472 // Notifies the browser of the language (ISO 639_1 code language, such as fr, 473 // Notifies the browser of the language (ISO 639_1 code language, such as fr,
473 // en, zh...) of the current page. 474 // en, zh...) of the current page.
474 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined, 475 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PageLanguageDetermined,
475 std::string /* the language */) 476 std::string /* the language */)
476 477
477 // Notifies the browser that a page has been translated. 478 // Notifies the browser that a page has been translated.
478 IPC_MESSAGE_ROUTED4(ViewHostMsg_PageTranslated, 479 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated,
479 int, /* page id */ 480 int, /* page id */
480 std::string /* the original language */, 481 std::string /* the original language */,
481 std::string /* the translated language */, 482 std::string /* the translated language */,
482 TranslateErrors::Type /* the error type if available */) 483 TranslateErrors::Type /* the error type if available */)
483 484
484 // Message sent from the renderer to the browser to notify it of events which 485 // Message sent from the renderer to the browser to notify it of events which
485 // may lead to the cancellation of a prerender. The message is sent only when 486 // may lead to the cancellation of a prerender. The message is sent only when
486 // the renderer is prerendering. 487 // the renderer is prerendering.
487 IPC_MESSAGE_ROUTED0(ViewHostMsg_MaybeCancelPrerenderForHTML5Media) 488 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_MaybeCancelPrerenderForHTML5Media)
488 489
489 // Message sent from the renderer to the browser to notify it of a 490 // Message sent from the renderer to the browser to notify it of a
490 // window.print() call which should cancel the prerender. The message is sent 491 // window.print() call which should cancel the prerender. The message is sent
491 // only when the renderer is prerendering. 492 // only when the renderer is prerendering.
492 IPC_MESSAGE_ROUTED0(ViewHostMsg_CancelPrerenderForPrinting) 493 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting)
493 494
494 // Sent by the renderer to check if a URL has permission to trigger a clipboard 495 // Sent by the renderer to check if a URL has permission to trigger a clipboard
495 // read/write operation from the DOM. 496 // read/write operation from the DOM.
496 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CanTriggerClipboardRead, 497 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
497 GURL /* url */, 498 GURL /* url */,
498 bool /* allowed */) 499 bool /* allowed */)
499 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CanTriggerClipboardWrite, 500 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
500 GURL /* url */, 501 GURL /* url */,
501 bool /* allowed */) 502 bool /* allowed */)
502 503
503 // Sent when the renderer was prevented from displaying insecure content in 504 // Sent when the renderer was prevented from displaying insecure content in
504 // a secure page by a security policy. The page may appear incomplete. 505 // a secure page by a security policy. The page may appear incomplete.
505 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidBlockDisplayingInsecureContent) 506 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent)
506 507
507 // Sent when the renderer was prevented from running insecure content in 508 // Sent when the renderer was prevented from running insecure content in
508 // a secure origin by a security policy. The page may appear incomplete. 509 // a secure origin by a security policy. The page may appear incomplete.
509 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidBlockRunningInsecureContent) 510 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent)
510 511
511 // Suggest results ----------------------------------------------------------- 512 // Suggest results -----------------------------------------------------------
512 513
513 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, 514 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions,
514 int32 /* page_id */, 515 int32 /* page_id */,
515 std::vector<std::string> /* suggestions */, 516 std::vector<std::string> /* suggestions */,
516 InstantCompleteBehavior) 517 InstantCompleteBehavior)
517 518
518 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, 519 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
519 int32 /* page_id */, 520 int32 /* page_id */,
520 bool /* result */) 521 bool /* result */)
521 522
522 // JavaScript related messages ----------------------------------------------- 523 // JavaScript related messages -----------------------------------------------
523 524
524 // Notify the JavaScript engine in the render to change its parameters 525 // Notify the JavaScript engine in the render to change its parameters
525 // while performing stress testing. 526 // while performing stress testing.
526 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 527 IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl,
527 int /* cmd */, 528 int /* cmd */,
528 int /* param */) 529 int /* param */)
OLDNEW
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/renderer/automation/dom_automation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698