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

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

Issue 9133002: Added support for file URI path wildcards in content settings (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 11 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) 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 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 IPC_STRUCT_TRAITS_END() 123 IPC_STRUCT_TRAITS_END()
124 124
125 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) 125 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts)
126 IPC_STRUCT_TRAITS_MEMBER(scheme) 126 IPC_STRUCT_TRAITS_MEMBER(scheme)
127 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) 127 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard)
128 IPC_STRUCT_TRAITS_MEMBER(host) 128 IPC_STRUCT_TRAITS_MEMBER(host)
129 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) 129 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard)
130 IPC_STRUCT_TRAITS_MEMBER(port) 130 IPC_STRUCT_TRAITS_MEMBER(port)
131 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) 131 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard)
132 IPC_STRUCT_TRAITS_MEMBER(path) 132 IPC_STRUCT_TRAITS_MEMBER(path)
133 IPC_STRUCT_TRAITS_MEMBER(is_path_wildcard)
133 IPC_STRUCT_TRAITS_END() 134 IPC_STRUCT_TRAITS_END()
134 135
135 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource) 136 IPC_STRUCT_TRAITS_BEGIN(ContentSettingPatternSource)
136 IPC_STRUCT_TRAITS_MEMBER(primary_pattern) 137 IPC_STRUCT_TRAITS_MEMBER(primary_pattern)
137 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern) 138 IPC_STRUCT_TRAITS_MEMBER(secondary_pattern)
138 IPC_STRUCT_TRAITS_MEMBER(setting) 139 IPC_STRUCT_TRAITS_MEMBER(setting)
139 IPC_STRUCT_TRAITS_MEMBER(source) 140 IPC_STRUCT_TRAITS_MEMBER(source)
140 IPC_STRUCT_TRAITS_MEMBER(incognito) 141 IPC_STRUCT_TRAITS_MEMBER(incognito)
141 IPC_STRUCT_TRAITS_END() 142 IPC_STRUCT_TRAITS_END()
142 143
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 IPC_STRUCT_TRAITS_END() 177 IPC_STRUCT_TRAITS_END()
177 178
178 //----------------------------------------------------------------------------- 179 //-----------------------------------------------------------------------------
179 // RenderView messages 180 // RenderView messages
180 // These are messages sent from the browser to the renderer process. 181 // These are messages sent from the browser to the renderer process.
181 182
182 // Tells the renderer to set its maximum cache size to the supplied value. 183 // Tells the renderer to set its maximum cache size to the supplied value.
183 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities, 184 IPC_MESSAGE_CONTROL3(ChromeViewMsg_SetCacheCapacities,
184 size_t /* min_dead_capacity */, 185 size_t /* min_dead_capacity */,
185 size_t /* max_dead_capacity */, 186 size_t /* max_dead_capacity */,
186 size_t /* capacity */) 187 size_t /* capacity */);
Bernhard Bauer 2012/01/09 13:23:41 Don't place semicolons after these macros: http://
Francois 2012/01/09 14:51:03 Done.
187 188
188 // Tells the renderer to clear the cache. 189 // Tells the renderer to clear the cache.
189 IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache, 190 IPC_MESSAGE_CONTROL1(ChromeViewMsg_ClearCache,
190 bool /* on_navigation */) 191 bool /* on_navigation */);
191 192
192 // Tells the renderer to dump as much memory as it can, perhaps because we 193 // Tells the renderer to dump as much memory as it can, perhaps because we
193 // have memory pressure or the renderer is (or will be) paged out. This 194 // have memory pressure or the renderer is (or will be) paged out. This
194 // should only result in purging objects we can recalculate, e.g. caches or 195 // should only result in purging objects we can recalculate, e.g. caches or
195 // JS garbage, not in purging irreplaceable objects. 196 // JS garbage, not in purging irreplaceable objects.
196 IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory) 197 IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory);
197 198
198 // For WebUI testing, this message stores parameters to do ScriptEvalRequest at 199 // For WebUI testing, this message stores parameters to do ScriptEvalRequest at
199 // a time which is late enough to not be thrown out, and early enough to be 200 // a time which is late enough to not be thrown out, and early enough to be
200 // before onload events are fired. 201 // before onload events are fired.
201 IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript, 202 IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript,
202 string16, /* frame_xpath */ 203 string16, /* frame_xpath */
203 string16, /* jscript_url */ 204 string16, /* jscript_url */
204 int, /* ID */ 205 int, /* ID */
205 bool /* If true, result is sent back. */) 206 bool /* If true, result is sent back. */);
206 207
207 // Tells the render view to capture a thumbnail image of the page. The 208 // Tells the render view to capture a thumbnail image of the page. The
208 // render view responds with a ChromeViewHostMsg_Snapshot. 209 // render view responds with a ChromeViewHostMsg_Snapshot.
209 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CaptureSnapshot) 210 IPC_MESSAGE_ROUTED0(ChromeViewMsg_CaptureSnapshot);
210 211
211 // History system notification that the visited link database has been 212 // History system notification that the visited link database has been
212 // replaced. It has one SharedMemoryHandle argument consisting of the table 213 // replaced. It has one SharedMemoryHandle argument consisting of the table
213 // handle. This handle is valid in the context of the renderer 214 // handle. This handle is valid in the context of the renderer
214 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_NewTable, 215 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_NewTable,
215 base::SharedMemoryHandle) 216 base::SharedMemoryHandle);
216 217
217 // History system notification that a link has been added and the link 218 // History system notification that a link has been added and the link
218 // coloring state for the given hash must be re-calculated. 219 // coloring state for the given hash must be re-calculated.
219 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_Add, std::vector<uint64>) 220 IPC_MESSAGE_CONTROL1(ChromeViewMsg_VisitedLink_Add, std::vector<uint64>);
220 221
221 // History system notification that one or more history items have been 222 // History system notification that one or more history items have been
222 // deleted, which at this point means that all link coloring state must be 223 // deleted, which at this point means that all link coloring state must be
223 // re-calculated. 224 // re-calculated.
224 IPC_MESSAGE_CONTROL0(ChromeViewMsg_VisitedLink_Reset) 225 IPC_MESSAGE_CONTROL0(ChromeViewMsg_VisitedLink_Reset);
225 226
226 // Set the content setting rules stored by the renderer. 227 // Set the content setting rules stored by the renderer.
227 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, 228 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules,
228 RendererContentSettingRules /* rules */) 229 RendererContentSettingRules /* rules */);
229 230
230 // Tells the render view to load all blocked plugins. 231 // Tells the render view to load all blocked plugins.
231 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins) 232 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins);
232 233
233 // Asks the renderer to send back stats on the WebCore cache broken down by 234 // Asks the renderer to send back stats on the WebCore cache broken down by
234 // resource types. 235 // resource types.
235 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) 236 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats);
236 237
237 // Asks the renderer to send back Histograms. 238 // Asks the renderer to send back Histograms.
238 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, 239 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms,
239 int /* sequence number of Renderer Histograms. */) 240 int /* sequence number of Renderer Histograms. */);
240 241
241 // Tells the renderer to create a FieldTrial, and by using a 100% probability 242 // Tells the renderer to create a FieldTrial, and by using a 100% probability
242 // for the FieldTrial, forces the FieldTrial to have assigned group name. 243 // for the FieldTrial, forces the FieldTrial to have assigned group name.
243 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, 244 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
244 std::string /* field trial name */, 245 std::string /* field trial name */,
245 std::string /* group name that was assigned. */) 246 std::string /* group name that was assigned. */);
246 247
247 #if defined(USE_TCMALLOC) 248 #if defined(USE_TCMALLOC)
248 // Asks the renderer to send back tcmalloc stats. 249 // Asks the renderer to send back tcmalloc stats.
249 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetRendererTcmalloc) 250 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetRendererTcmalloc);
250 // Asks the renderer to enable/disable Tcmalloc heap profiling. 251 // Asks the renderer to enable/disable Tcmalloc heap profiling.
251 // Note: filename_prefix arg is effectively ignored since the render process 252 // Note: filename_prefix arg is effectively ignored since the render process
252 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile 253 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile
253 // to write a profile file. 254 // to write a profile file.
254 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetTcmallocHeapProfiling, 255 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetTcmallocHeapProfiling,
255 bool /* enable profiling */, 256 bool /* enable profiling */,
256 std::string /* filename prefix for profiles */) 257 std::string /* filename prefix for profiles */);
257 // Asks the renderer to write the Tcmalloc heap profile to a file. 258 // Asks the renderer to write the Tcmalloc heap profile to a file.
258 IPC_MESSAGE_CONTROL1(ChromeViewMsg_WriteTcmallocHeapProfile, 259 IPC_MESSAGE_CONTROL1(ChromeViewMsg_WriteTcmallocHeapProfile,
259 FilePath::StringType /* filepath */) 260 FilePath::StringType /* filepath */);
260 #endif 261 #endif
261 262
262 // Asks the renderer to send back V8 heap stats. 263 // Asks the renderer to send back V8 heap stats.
263 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats) 264 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetV8HeapStats);
264 265
265 // Posts a message to the renderer. 266 // Posts a message to the renderer.
266 IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost, 267 IPC_MESSAGE_ROUTED3(ChromeViewMsg_HandleMessageFromExternalHost,
267 std::string /* The message */, 268 std::string /* The message */,
268 std::string /* The origin */, 269 std::string /* The origin */,
269 std::string /* The target*/) 270 std::string /* The target*/);
270 271
271 IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange, 272 IPC_MESSAGE_ROUTED4(ChromeViewMsg_SearchBoxChange,
272 string16 /* value */, 273 string16 /* value */,
273 bool /* verbatim */, 274 bool /* verbatim */,
274 int /* selection_start */, 275 int /* selection_start */,
275 int /* selection_end */) 276 int /* selection_end */);
276 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit, 277 IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxSubmit,
277 string16 /* value */, 278 string16 /* value */,
278 bool /* verbatim */) 279 bool /* verbatim */);
279 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxCancel) 280 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxCancel);
280 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxResize, 281 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxResize,
281 gfx::Rect /* search_box_bounds */) 282 gfx::Rect /* search_box_bounds */);
282 IPC_MESSAGE_ROUTED4(ChromeViewMsg_DetermineIfPageSupportsInstant, 283 IPC_MESSAGE_ROUTED4(ChromeViewMsg_DetermineIfPageSupportsInstant,
283 string16 /* value*/, 284 string16 /* value*/,
284 bool /* verbatim */, 285 bool /* verbatim */,
285 int /* selection_start */, 286 int /* selection_start */,
286 int /* selection_end */) 287 int /* selection_end */);
287 288
288 // Toggles visual muting of the render view area. This is on when a constrained 289 // Toggles visual muting of the render view area. This is on when a constrained
289 // window is showing. 290 // window is showing.
290 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, 291 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
291 bool /* deemphazied */) 292 bool /* deemphazied */);
292 293
293 // Tells the renderer to translate the page contents from one language to 294 // Tells the renderer to translate the page contents from one language to
294 // another. 295 // another.
295 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage, 296 IPC_MESSAGE_ROUTED4(ChromeViewMsg_TranslatePage,
296 int /* page id */, 297 int /* page id */,
297 std::string, /* the script injected in the page */ 298 std::string, /* the script injected in the page */
298 std::string, /* BCP 47/RFC 5646 language code the page 299 std::string, /* BCP 47/RFC 5646 language code the page
299 is in */ 300 is in */
300 std::string /* BCP 47/RFC 5646 language code to translate 301 std::string /* BCP 47/RFC 5646 language code to translate
301 to */) 302 to */);
302 303
303 // Tells the renderer to revert the text of translated page to its original 304 // Tells the renderer to revert the text of translated page to its original
304 // contents. 305 // contents.
305 IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation, 306 IPC_MESSAGE_ROUTED1(ChromeViewMsg_RevertTranslation,
306 int /* page id */) 307 int /* page id */);
307 308
308 // Tells a renderer if it's currently being prerendered. Must only be set 309 // Tells a renderer if it's currently being prerendered. Must only be set
309 // to true before any navigation occurs, and only set to false at most once 310 // to true before any navigation occurs, and only set to false at most once
310 // after that. 311 // after that.
311 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetIsPrerendering, 312 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetIsPrerendering,
312 bool /* whether the RenderView is prerendering */) 313 bool /* whether the RenderView is prerendering */);
313 314
314 // Sent on process startup to indicate whether this process is running in 315 // Sent on process startup to indicate whether this process is running in
315 // incognito mode. 316 // incognito mode.
316 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess, 317 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetIsIncognitoProcess,
317 bool /* is_incognito_processs */) 318 bool /* is_incognito_processs */);
318 319
319 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. 320 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent.
320 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent, 321 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent,
321 bool /* allowed */) 322 bool /* allowed */);
322 323
323 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. 324 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent.
324 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent, 325 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent,
325 bool /* allowed */) 326 bool /* allowed */);
326 327
327 // Tells renderer to always enforce mixed content blocking for this host. 328 // Tells renderer to always enforce mixed content blocking for this host.
328 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost, 329 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AddStrictSecurityHost,
329 std::string /* host */) 330 std::string /* host */);
330 331
331 // Sent when the profile changes the kSafeBrowsingEnabled preference. 332 // Sent when the profile changes the kSafeBrowsingEnabled preference.
332 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, 333 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection,
333 bool /* enable_phishing_detection */) 334 bool /* enable_phishing_detection */);
334 335
335 // This message asks frame sniffer start. 336 // This message asks frame sniffer start.
336 IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer, 337 IPC_MESSAGE_ROUTED1(ChromeViewMsg_StartFrameSniffer,
337 string16 /* frame-name */) 338 string16 /* frame-name */);
338 339
339 // JavaScript related messages ----------------------------------------------- 340 // JavaScript related messages -----------------------------------------------
340 341
341 // Notify the JavaScript engine in the render to change its parameters 342 // Notify the JavaScript engine in the render to change its parameters
342 // while performing stress testing. 343 // while performing stress testing.
343 IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl, 344 IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl,
344 int /* cmd */, 345 int /* cmd */,
345 int /* param */) 346 int /* param */);
346 347
347 // Asks the renderer to send back FPS. 348 // Asks the renderer to send back FPS.
348 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS) 349 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS);
349 350
350 // Tells the view it is displaying an interstitial page. 351 // Tells the view it is displaying an interstitial page.
351 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial) 352 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial);
352 353
353 //----------------------------------------------------------------------------- 354 //-----------------------------------------------------------------------------
354 // TabContents messages 355 // TabContents messages
355 // These are messages sent from the renderer to the browser process. 356 // These are messages sent from the renderer to the browser process.
356 357
357 // Provides the contents for the given page that was loaded recently. 358 // Provides the contents for the given page that was loaded recently.
358 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents, 359 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageContents,
359 GURL /* URL of the page */, 360 GURL /* URL of the page */,
360 int32 /* page id */, 361 int32 /* page id */,
361 string16 /* page contents */) 362 string16 /* page contents */);
362 363
363 // Notification that the language for the tab has been determined. 364 // Notification that the language for the tab has been determined.
364 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined, 365 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined,
365 std::string /* page ISO639_1 language code */, 366 std::string /* page ISO639_1 language code */,
366 bool /* whether the page can be translated */) 367 bool /* whether the page can be translated */);
367 368
368 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, 369 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats,
369 WebKit::WebCache::UsageStats /* stats */) 370 WebKit::WebCache::UsageStats /* stats */);
370 371
371 // Tells the browser that content in the current page was blocked due to the 372 // Tells the browser that content in the current page was blocked due to the
372 // user's content settings. 373 // user's content settings.
373 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked, 374 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked,
374 ContentSettingsType, /* type of blocked content */ 375 ContentSettingsType, /* type of blocked content */
375 std::string /* resource identifier */) 376 std::string /* resource identifier */);
376 377
377 // Sent by the renderer process to check whether access to web databases is 378 // Sent by the renderer process to check whether access to web databases is
378 // granted by content settings. 379 // granted by content settings.
379 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase, 380 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase,
380 int /* render_view_id */, 381 int /* render_view_id */,
381 GURL /* origin_url */, 382 GURL /* origin_url */,
382 GURL /* top origin url */, 383 GURL /* top origin url */,
383 string16 /* database name */, 384 string16 /* database name */,
384 string16 /* database display name */, 385 string16 /* database display name */,
385 bool /* allowed */) 386 bool /* allowed */);
386 387
387 // Sent by the renderer process to check whether access to DOM Storage is 388 // Sent by the renderer process to check whether access to DOM Storage is
388 // granted by content settings. 389 // granted by content settings.
389 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage, 390 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage,
390 int /* render_view_id */, 391 int /* render_view_id */,
391 GURL /* origin_url */, 392 GURL /* origin_url */,
392 GURL /* top origin url */, 393 GURL /* top origin url */,
393 bool /* if true local storage, otherwise session */, 394 bool /* if true local storage, otherwise session */,
394 bool /* allowed */) 395 bool /* allowed */);
395 396
396 // Sent by the renderer process to check whether access to FileSystem is 397 // Sent by the renderer process to check whether access to FileSystem is
397 // granted by content settings. 398 // granted by content settings.
398 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem, 399 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem,
399 int /* render_view_id */, 400 int /* render_view_id */,
400 GURL /* origin_url */, 401 GURL /* origin_url */,
401 GURL /* top origin url */, 402 GURL /* top origin url */,
402 bool /* allowed */) 403 bool /* allowed */);
403 404
404 // Sent by the renderer process to check whether access to Indexed DBis 405 // Sent by the renderer process to check whether access to Indexed DBis
405 // granted by content settings. 406 // granted by content settings.
406 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB, 407 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB,
407 int /* render_view_id */, 408 int /* render_view_id */,
408 GURL /* origin_url */, 409 GURL /* origin_url */,
409 GURL /* top origin url */, 410 GURL /* top origin url */,
410 string16 /* database name */, 411 string16 /* database name */,
411 bool /* allowed */) 412 bool /* allowed */);
412 413
413 // Return information about a plugin for the given URL and MIME type. 414 // Return information about a plugin for the given URL and MIME type.
414 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows 415 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows
415 // about specific reasons why a plug-in can't be used, for example because it's 416 // about specific reasons why a plug-in can't be used, for example because it's
416 // disabled. 417 // disabled.
417 IPC_SYNC_MESSAGE_CONTROL4_3(ChromeViewHostMsg_GetPluginInfo, 418 IPC_SYNC_MESSAGE_CONTROL4_3(ChromeViewHostMsg_GetPluginInfo,
418 int /* render_view_id */, 419 int /* render_view_id */,
419 GURL /* url */, 420 GURL /* url */,
420 GURL /* top origin url */, 421 GURL /* top origin url */,
421 std::string /* mime_type */, 422 std::string /* mime_type */,
422 ChromeViewHostMsg_GetPluginInfo_Status /* status */, 423 ChromeViewHostMsg_GetPluginInfo_Status /* status */,
423 webkit::WebPluginInfo /* plugin */, 424 webkit::WebPluginInfo /* plugin */,
424 std::string /* actual_mime_type */) 425 std::string /* actual_mime_type */);
425 426
426 // Tells the browser to search for a plug-in that can handle the given MIME 427 // Tells the browser to search for a plug-in that can handle the given MIME
427 // type. The result will be sent asynchronously to the routing ID 428 // type. The result will be sent asynchronously to the routing ID
428 // |placeholder_id|. 429 // |placeholder_id|.
429 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, 430 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin,
430 int /* placeholder_id */, 431 int /* placeholder_id */,
431 std::string /* mime_type */) 432 std::string /* mime_type */);
432 433
433 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name| 434 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name|
434 // has been found. 435 // has been found.
435 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin, 436 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin,
436 string16 /* plugin_name */) 437 string16 /* plugin_name */);
437 438
438 // Notifies a missing plug-in placeholder that no plug-in has been found. 439 // Notifies a missing plug-in placeholder that no plug-in has been found.
439 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin) 440 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin);
440 441
441 // Notifies a missing plug-in placeholder that we have started downloading 442 // Notifies a missing plug-in placeholder that we have started downloading
442 // the plug-in. 443 // the plug-in.
443 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin) 444 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin);
444 445
445 // Notifies a missing plug-in placeholder that we have finished downloading 446 // Notifies a missing plug-in placeholder that we have finished downloading
446 // the plug-in. 447 // the plug-in.
447 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin) 448 IPC_MESSAGE_ROUTED0(ChromeViewMsg_FinishedDownloadingPlugin);
448 449
449 // Specifies the URL as the first parameter (a wstring) and thumbnail as 450 // Specifies the URL as the first parameter (a wstring) and thumbnail as
450 // binary data as the second parameter. 451 // binary data as the second parameter.
451 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_Thumbnail, 452 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_Thumbnail,
452 GURL /* url */, 453 GURL /* url */,
453 ThumbnailScore /* score */, 454 ThumbnailScore /* score */,
454 SkBitmap /* bitmap */) 455 SkBitmap /* bitmap */);
455 456
456 // Send a snapshot of the tab contents to the render host. 457 // Send a snapshot of the tab contents to the render host.
457 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot, 458 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot,
458 SkBitmap /* bitmap */) 459 SkBitmap /* bitmap */);
459 460
460 // Following message is used to communicate the values received by the 461 // Following message is used to communicate the values received by the
461 // callback binding the JS to Cpp. 462 // callback binding the JS to Cpp.
462 // An instance of browser that has an automation host listening to it can 463 // An instance of browser that has an automation host listening to it can
463 // have a javascript send a native value (string, number, boolean) to the 464 // have a javascript send a native value (string, number, boolean) to the
464 // listener in Cpp. (DomAutomationController) 465 // listener in Cpp. (DomAutomationController)
465 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_DomOperationResponse, 466 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_DomOperationResponse,
466 std::string /* json_string */, 467 std::string /* json_string */,
467 int /* automation_id */) 468 int /* automation_id */);
468 469
469 // A message for an external host. 470 // A message for an external host.
470 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, 471 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
471 std::string /* message */, 472 std::string /* message */,
472 std::string /* origin */, 473 std::string /* origin */,
473 std::string /* target */) 474 std::string /* target */);
474 475
475 // A renderer sends this to the browser process when it wants to start 476 // A renderer sends this to the browser process when it wants to start
476 // a new instance of the Native Client process. The browser will launch 477 // a new instance of the Native Client process. The browser will launch
477 // the process and return a handle to an IMC channel. 478 // the process and return a handle to an IMC channel.
478 IPC_SYNC_MESSAGE_CONTROL2_3(ChromeViewHostMsg_LaunchNaCl, 479 IPC_SYNC_MESSAGE_CONTROL2_3(ChromeViewHostMsg_LaunchNaCl,
479 std::wstring /* url for the NaCl module */, 480 std::wstring /* url for the NaCl module */,
480 int /* socket count */, 481 int /* socket count */,
481 std::vector<nacl::FileDescriptor> 482 std::vector<nacl::FileDescriptor>
482 /* imc channel handles */, 483 /* imc channel handles */,
483 base::ProcessHandle /* NaCl process handle */, 484 base::ProcessHandle /* NaCl process handle */,
484 base::ProcessId /* NaCl process id */) 485 base::ProcessId /* NaCl process id */);
485 486
486 // Notification that the page has an OpenSearch description document 487 // Notification that the page has an OpenSearch description document
487 // associated with it. 488 // associated with it.
488 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, 489 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD,
489 int32 /* page_id */, 490 int32 /* page_id */,
490 GURL /* url of OS description document */, 491 GURL /* url of OS description document */,
491 search_provider::OSDDType) 492 search_provider::OSDDType);
492 493
493 // Find out if the given url's security origin is installed as a search 494 // Find out if the given url's security origin is installed as a search
494 // provider. 495 // provider.
495 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, 496 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
496 GURL /* page url */, 497 GURL /* page url */,
497 GURL /* inquiry url */, 498 GURL /* inquiry url */,
498 search_provider::InstallState /* install */) 499 search_provider::InstallState /* install */);
499 500
500 // Send back histograms as vector of pickled-histogram strings. 501 // Send back histograms as vector of pickled-histogram strings.
501 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms, 502 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms,
502 int, /* sequence number of Renderer Histograms. */ 503 int, /* sequence number of Renderer Histograms. */
503 std::vector<std::string>) 504 std::vector<std::string>);
504 505
505 #if defined USE_TCMALLOC 506 #if defined USE_TCMALLOC
506 // Send back tcmalloc stats output. 507 // Send back tcmalloc stats output.
507 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_RendererTcmalloc, 508 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_RendererTcmalloc,
508 std::string /* tcmalloc debug output */) 509 std::string /* tcmalloc debug output */);
509 // Send back tcmalloc profile to write to a file. 510 // Send back tcmalloc profile to write to a file.
510 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK, 511 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK,
511 FilePath::StringType /* filepath */, 512 FilePath::StringType /* filepath */,
512 std::string /* heap profile */) 513 std::string /* heap profile */);
513 #endif 514 #endif
514 515
515 // Sends back stats about the V8 heap. 516 // Sends back stats about the V8 heap.
516 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats, 517 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_V8HeapStats,
517 int /* size of heap (allocated from the OS) */, 518 int /* size of heap (allocated from the OS) */,
518 int /* bytes in use */) 519 int /* bytes in use */);
519 520
520 // Request for a DNS prefetch of the names in the array. 521 // Request for a DNS prefetch of the names in the array.
521 // NameList is typedef'ed std::vector<std::string> 522 // NameList is typedef'ed std::vector<std::string>
522 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch, 523 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_DnsPrefetch,
523 std::vector<std::string> /* hostnames */) 524 std::vector<std::string> /* hostnames */);
524 525
525 // Notifies when a plugin couldn't be loaded because it's outdated. 526 // Notifies when a plugin couldn't be loaded because it's outdated.
526 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, 527 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
527 string16, /* name */ 528 string16, /* name */
528 GURL /* update_url */) 529 GURL /* update_url */);
529 530
530 // Provide the browser process with information about the WebCore resource 531 // Provide the browser process with information about the WebCore resource
531 // cache and current renderer framerate. 532 // cache and current renderer framerate.
532 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats, 533 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats,
533 WebKit::WebCache::ResourceTypeStats) 534 WebKit::WebCache::ResourceTypeStats);
534 535
535 536
536 // Notifies the browser of the language (ISO 639_1 code language, such as fr, 537 // Notifies the browser of the language (ISO 639_1 code language, such as fr,
537 // en, zh...) of the current page. 538 // en, zh...) of the current page.
538 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PageLanguageDetermined, 539 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_PageLanguageDetermined,
539 std::string /* the language */) 540 std::string /* the language */);
540 541
541 // Notifies the browser that a page has been translated. 542 // Notifies the browser that a page has been translated.
542 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated, 543 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated,
543 int, /* page id */ 544 int, /* page id */
544 std::string /* the original language */, 545 std::string /* the original language */,
545 std::string /* the translated language */, 546 std::string /* the translated language */,
546 TranslateErrors::Type /* the error type if available */) 547 TranslateErrors::Type /* the error type if available */);
547 548
548 // Message sent from the renderer to the browser to notify it of events which 549 // Message sent from the renderer to the browser to notify it of events which
549 // may lead to the cancellation of a prerender. The message is sent only when 550 // may lead to the cancellation of a prerender. The message is sent only when
550 // the renderer is prerendering. 551 // the renderer is prerendering.
551 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_MaybeCancelPrerenderForHTML5Media) 552 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_MaybeCancelPrerenderForHTML5Media);
552 553
553 // Message sent from the renderer to the browser to notify it of a 554 // Message sent from the renderer to the browser to notify it of a
554 // window.print() call which should cancel the prerender. The message is sent 555 // window.print() call which should cancel the prerender. The message is sent
555 // only when the renderer is prerendering. 556 // only when the renderer is prerendering.
556 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) 557 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting);
557 558
558 // Sent by the renderer to check if a URL has permission to trigger a clipboard 559 // Sent by the renderer to check if a URL has permission to trigger a clipboard
559 // read/write operation from the DOM. 560 // read/write operation from the DOM.
560 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead, 561 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
561 GURL /* origin */, 562 GURL /* origin */,
562 bool /* allowed */) 563 bool /* allowed */);
563 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite, 564 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
564 GURL /* origin */, 565 GURL /* origin */,
565 bool /* allowed */) 566 bool /* allowed */);
566 567
567 // Sent when the renderer was prevented from displaying insecure content in 568 // Sent when the renderer was prevented from displaying insecure content in
568 // a secure page by a security policy. The page may appear incomplete. 569 // a secure page by a security policy. The page may appear incomplete.
569 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) 570 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent);
570 571
571 // Sent when the renderer was prevented from running insecure content in 572 // Sent when the renderer was prevented from running insecure content in
572 // a secure origin by a security policy. The page may appear incomplete. 573 // a secure origin by a security policy. The page may appear incomplete.
573 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) 574 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent);
574 575
575 // Message sent from renderer to the browser when the element that is focused 576 // Message sent from renderer to the browser when the element that is focused
576 // and currently accepts keyboard input inside the webpage has been touched. 577 // and currently accepts keyboard input inside the webpage has been touched.
577 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched) 578 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FocusedEditableNodeTouched);
578 579
579 // Suggest results ----------------------------------------------------------- 580 // Suggest results -----------------------------------------------------------
580 581
581 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions, 582 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetSuggestions,
582 int32 /* page_id */, 583 int32 /* page_id */,
583 std::vector<std::string> /* suggestions */, 584 std::vector<std::string> /* suggestions */,
584 InstantCompleteBehavior) 585 InstantCompleteBehavior);
585 586
586 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, 587 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined,
587 int32 /* page_id */, 588 int32 /* page_id */,
588 bool /* result */) 589 bool /* result */);
589 590
590 // The currently displayed PDF has an unsupported feature. 591 // The currently displayed PDF has an unsupported feature.
591 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature) 592 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_PDFHasUnsupportedFeature);
592 593
593 // This message indicates the error appeared in the frame. 594 // This message indicates the error appeared in the frame.
594 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError, 595 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_FrameLoadingError,
595 int /* error */) 596 int /* error */);
596 597
597 // This message indicates the monitored frame loading had completed. 598 // This message indicates the monitored frame loading had completed.
598 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted) 599 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_FrameLoadingCompleted);
599 600
600 // The following messages are used to set and get cookies for ChromeFrame 601 // The following messages are used to set and get cookies for ChromeFrame
601 // processes. 602 // processes.
602 // Used to set a cookie. The cookie is set asynchronously, but will be 603 // Used to set a cookie. The cookie is set asynchronously, but will be
603 // available to a subsequent ChromeViewHostMsg_GetCookies request. 604 // available to a subsequent ChromeViewHostMsg_GetCookies request.
604 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie, 605 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_SetCookie,
605 GURL /* url */, 606 GURL /* url */,
606 GURL /* first_party_for_cookies */, 607 GURL /* first_party_for_cookies */,
607 std::string /* cookie */) 608 std::string /* cookie */);
608 609
609 // Used to get cookies for the given URL. This may block waiting for a 610 // Used to get cookies for the given URL. This may block waiting for a
610 // previous SetCookie message to be processed. 611 // previous SetCookie message to be processed.
611 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 612 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
612 GURL /* url */, 613 GURL /* url */,
613 GURL /* first_party_for_cookies */, 614 GURL /* first_party_for_cookies */,
614 std::string /* cookies */) 615 std::string /* cookies */);
615 616
616 // Provide the browser process with current renderer framerate. 617 // Provide the browser process with current renderer framerate.
617 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 618 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
618 int /* routing id */, 619 int /* routing id */,
619 float /* frames per second */) 620 float /* frames per second */);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698