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 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) | 134 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) |
135 IPC_STRUCT_TRAITS_MEMBER(value) | 135 IPC_STRUCT_TRAITS_MEMBER(value) |
136 IPC_STRUCT_TRAITS_END() | 136 IPC_STRUCT_TRAITS_END() |
137 | 137 |
138 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. | 138 // Output parameters for ChromeViewHostMsg_GetPluginInfo message. |
139 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) | 139 IPC_STRUCT_BEGIN(ChromeViewHostMsg_GetPluginInfo_Output) |
140 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) | 140 IPC_STRUCT_MEMBER(ChromeViewHostMsg_GetPluginInfo_Status, status) |
141 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) | 141 IPC_STRUCT_MEMBER(content::WebPluginInfo, plugin) |
142 IPC_STRUCT_MEMBER(std::string, actual_mime_type) | 142 IPC_STRUCT_MEMBER(std::string, actual_mime_type) |
143 IPC_STRUCT_MEMBER(std::string, group_identifier) | 143 IPC_STRUCT_MEMBER(std::string, group_identifier) |
144 IPC_STRUCT_MEMBER(string16, group_name) | 144 IPC_STRUCT_MEMBER(base::string16, group_name) |
145 IPC_STRUCT_END() | 145 IPC_STRUCT_END() |
146 | 146 |
147 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) | 147 IPC_STRUCT_TRAITS_BEGIN(ContentSettingsPattern::PatternParts) |
148 IPC_STRUCT_TRAITS_MEMBER(scheme) | 148 IPC_STRUCT_TRAITS_MEMBER(scheme) |
149 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) | 149 IPC_STRUCT_TRAITS_MEMBER(is_scheme_wildcard) |
150 IPC_STRUCT_TRAITS_MEMBER(host) | 150 IPC_STRUCT_TRAITS_MEMBER(host) |
151 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) | 151 IPC_STRUCT_TRAITS_MEMBER(has_domain_wildcard) |
152 IPC_STRUCT_TRAITS_MEMBER(port) | 152 IPC_STRUCT_TRAITS_MEMBER(port) |
153 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) | 153 IPC_STRUCT_TRAITS_MEMBER(is_port_wildcard) |
154 IPC_STRUCT_TRAITS_MEMBER(path) | 154 IPC_STRUCT_TRAITS_MEMBER(path) |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Tells the renderer to dump as much memory as it can, perhaps because we | 263 // Tells the renderer to dump as much memory as it can, perhaps because we |
264 // have memory pressure or the renderer is (or will be) paged out. This | 264 // have memory pressure or the renderer is (or will be) paged out. This |
265 // should only result in purging objects we can recalculate, e.g. caches or | 265 // should only result in purging objects we can recalculate, e.g. caches or |
266 // JS garbage, not in purging irreplaceable objects. | 266 // JS garbage, not in purging irreplaceable objects. |
267 IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory) | 267 IPC_MESSAGE_CONTROL0(ChromeViewMsg_PurgeMemory) |
268 | 268 |
269 // For WebUI testing, this message stores parameters to do ScriptEvalRequest at | 269 // For WebUI testing, this message stores parameters to do ScriptEvalRequest at |
270 // a time which is late enough to not be thrown out, and early enough to be | 270 // a time which is late enough to not be thrown out, and early enough to be |
271 // before onload events are fired. | 271 // before onload events are fired. |
272 IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript, | 272 IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript, |
273 string16, /* frame_xpath */ | 273 base::string16, /* frame_xpath */ |
274 string16, /* jscript_url */ | 274 base::string16, /* jscript_url */ |
275 int, /* ID */ | 275 int, /* ID */ |
276 bool /* If true, result is sent back. */) | 276 bool /* If true, result is sent back. */) |
277 | 277 |
278 // Set the content setting rules stored by the renderer. | 278 // Set the content setting rules stored by the renderer. |
279 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, | 279 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, |
280 RendererContentSettingRules /* rules */) | 280 RendererContentSettingRules /* rules */) |
281 | 281 |
282 // Tells the render view to load all blocked plugins with the given identifier. | 282 // Tells the render view to load all blocked plugins with the given identifier. |
283 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, | 283 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, |
284 std::string /* identifier */) | 284 std::string /* identifier */) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation, | 321 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxPromoInformation, |
322 bool /* is_app_launcher_enabled */) | 322 bool /* is_app_launcher_enabled */) |
323 | 323 |
324 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress, | 324 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetInputInProgress, |
325 bool /* input_in_progress */) | 325 bool /* input_in_progress */) |
326 | 326 |
327 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch, | 327 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSetSuggestionToPrefetch, |
328 InstantSuggestion /* suggestion */) | 328 InstantSuggestion /* suggestion */) |
329 | 329 |
330 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit, | 330 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxSubmit, |
331 string16 /* value */) | 331 base::string16 /* value */) |
332 | 332 |
333 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged, | 333 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxThemeChanged, |
334 ThemeBackgroundInfo /* value */) | 334 ThemeBackgroundInfo /* value */) |
335 | 335 |
336 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult, | 336 IPC_MESSAGE_ROUTED2(ChromeViewMsg_ChromeIdentityCheckResult, |
337 string16 /* identity */, | 337 base::string16 /* identity */, |
338 bool /* identity_match */) | 338 bool /* identity_match */) |
339 | 339 |
340 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch) | 340 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SearchBoxToggleVoiceSearch) |
341 | 341 |
342 // Toggles visual muting of the render view area. This is on when a constrained | 342 // Toggles visual muting of the render view area. This is on when a constrained |
343 // window is showing. | 343 // window is showing. |
344 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, | 344 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized, |
345 bool /* deemphazied */) | 345 bool /* deemphazied */) |
346 | 346 |
347 // Tells the renderer to translate the page contents from one language to | 347 // Tells the renderer to translate the page contents from one language to |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked, | 447 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ContentBlocked, |
448 ContentSettingsType, /* type of blocked content */ | 448 ContentSettingsType, /* type of blocked content */ |
449 std::string /* resource identifier */) | 449 std::string /* resource identifier */) |
450 | 450 |
451 // Sent by the renderer process to check whether access to web databases is | 451 // Sent by the renderer process to check whether access to web databases is |
452 // granted by content settings. | 452 // granted by content settings. |
453 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase, | 453 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase, |
454 int /* render_view_id */, | 454 int /* render_view_id */, |
455 GURL /* origin_url */, | 455 GURL /* origin_url */, |
456 GURL /* top origin url */, | 456 GURL /* top origin url */, |
457 string16 /* database name */, | 457 base::string16 /* database name */, |
458 string16 /* database display name */, | 458 base::string16 /* database display name */, |
459 bool /* allowed */) | 459 bool /* allowed */) |
460 | 460 |
461 // Sent by the renderer process to check whether access to DOM Storage is | 461 // Sent by the renderer process to check whether access to DOM Storage is |
462 // granted by content settings. | 462 // granted by content settings. |
463 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage, | 463 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage, |
464 int /* render_view_id */, | 464 int /* render_view_id */, |
465 GURL /* origin_url */, | 465 GURL /* origin_url */, |
466 GURL /* top origin url */, | 466 GURL /* top origin url */, |
467 bool /* if true local storage, otherwise session */, | 467 bool /* if true local storage, otherwise session */, |
468 bool /* allowed */) | 468 bool /* allowed */) |
469 | 469 |
470 // Sent by the renderer process to check whether access to FileSystem is | 470 // Sent by the renderer process to check whether access to FileSystem is |
471 // granted by content settings. | 471 // granted by content settings. |
472 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem, | 472 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem, |
473 int /* render_view_id */, | 473 int /* render_view_id */, |
474 GURL /* origin_url */, | 474 GURL /* origin_url */, |
475 GURL /* top origin url */, | 475 GURL /* top origin url */, |
476 bool /* allowed */) | 476 bool /* allowed */) |
477 | 477 |
478 // Sent by the renderer process to check whether access to Indexed DBis | 478 // Sent by the renderer process to check whether access to Indexed DBis |
479 // granted by content settings. | 479 // granted by content settings. |
480 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB, | 480 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB, |
481 int /* render_view_id */, | 481 int /* render_view_id */, |
482 GURL /* origin_url */, | 482 GURL /* origin_url */, |
483 GURL /* top origin url */, | 483 GURL /* top origin url */, |
484 string16 /* database name */, | 484 base::string16 /* database name */, |
485 bool /* allowed */) | 485 bool /* allowed */) |
486 | 486 |
487 // Return information about a plugin for the given URL and MIME type. | 487 // Return information about a plugin for the given URL and MIME type. |
488 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows | 488 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
489 // about specific reasons why a plug-in can't be used, for example because it's | 489 // about specific reasons why a plug-in can't be used, for example because it's |
490 // disabled. | 490 // disabled. |
491 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, | 491 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
492 int /* render_view_id */, | 492 int /* render_view_id */, |
493 GURL /* url */, | 493 GURL /* url */, |
494 GURL /* top origin url */, | 494 GURL /* top origin url */, |
(...skipping 22 matching lines...) Expand all Loading... |
517 std::string /* mime_type */) | 517 std::string /* mime_type */) |
518 | 518 |
519 // Notifies the browser that a missing plug-in placeholder has been removed, so | 519 // Notifies the browser that a missing plug-in placeholder has been removed, so |
520 // the corresponding PluginPlaceholderHost can be deleted. | 520 // the corresponding PluginPlaceholderHost can be deleted. |
521 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost, | 521 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RemovePluginPlaceholderHost, |
522 int /* placeholder_id */) | 522 int /* placeholder_id */) |
523 | 523 |
524 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name| | 524 // Notifies a missing plug-in placeholder that a plug-in with name |plugin_name| |
525 // has been found. | 525 // has been found. |
526 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin, | 526 IPC_MESSAGE_ROUTED1(ChromeViewMsg_FoundMissingPlugin, |
527 string16 /* plugin_name */) | 527 base::string16 /* plugin_name */) |
528 | 528 |
529 // Notifies a missing plug-in placeholder that no plug-in has been found. | 529 // Notifies a missing plug-in placeholder that no plug-in has been found. |
530 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin) | 530 IPC_MESSAGE_ROUTED0(ChromeViewMsg_DidNotFindMissingPlugin) |
531 | 531 |
532 // Notifies a missing plug-in placeholder that we have started downloading | 532 // Notifies a missing plug-in placeholder that we have started downloading |
533 // the plug-in. | 533 // the plug-in. |
534 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin) | 534 IPC_MESSAGE_ROUTED0(ChromeViewMsg_StartedDownloadingPlugin) |
535 | 535 |
536 // Notifies a missing plug-in placeholder that we have finished downloading | 536 // Notifies a missing plug-in placeholder that we have finished downloading |
537 // the plug-in. | 537 // the plug-in. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 GURL /* preconnect target url */) | 598 GURL /* preconnect target url */) |
599 | 599 |
600 // Notifies when a plugin couldn't be loaded because it's outdated. | 600 // Notifies when a plugin couldn't be loaded because it's outdated. |
601 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, | 601 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, |
602 int /* placeholder ID */, | 602 int /* placeholder ID */, |
603 std::string /* plug-in group identifier */) | 603 std::string /* plug-in group identifier */) |
604 | 604 |
605 // Notifies when a plugin couldn't be loaded because it requires | 605 // Notifies when a plugin couldn't be loaded because it requires |
606 // user authorization. | 606 // user authorization. |
607 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, | 607 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedUnauthorizedPlugin, |
608 string16 /* name */, | 608 base::string16 /* name */, |
609 std::string /* plug-in group identifier */) | 609 std::string /* plug-in group identifier */) |
610 | 610 |
611 // Provide the browser process with information about the WebCore resource | 611 // Provide the browser process with information about the WebCore resource |
612 // cache and current renderer framerate. | 612 // cache and current renderer framerate. |
613 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats, | 613 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_ResourceTypeStats, |
614 blink::WebCache::ResourceTypeStats) | 614 blink::WebCache::ResourceTypeStats) |
615 | 615 |
616 // Notifies the browser that a page has been translated. | 616 // Notifies the browser that a page has been translated. |
617 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated, | 617 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_PageTranslated, |
618 int, /* page id */ | 618 int, /* page id */ |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 float /* frames per second */) | 703 float /* frames per second */) |
704 | 704 |
705 // Logs events from InstantExtended New Tab Pages. | 705 // Logs events from InstantExtended New Tab Pages. |
706 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent, | 706 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_LogEvent, |
707 int /* page_id */, | 707 int /* page_id */, |
708 NTPLoggingEventType /* event */) | 708 NTPLoggingEventType /* event */) |
709 | 709 |
710 // The Instant page asks for Chrome identity check against |identity|. | 710 // The Instant page asks for Chrome identity check against |identity|. |
711 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck, | 711 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_ChromeIdentityCheck, |
712 int /* page_id */, | 712 int /* page_id */, |
713 string16 /* identity */) | 713 base::string16 /* identity */) |
714 | 714 |
715 // Tells InstantExtended to set the omnibox focus state. | 715 // Tells InstantExtended to set the omnibox focus state. |
716 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox, | 716 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FocusOmnibox, |
717 int /* page_id */, | 717 int /* page_id */, |
718 OmniboxFocusState /* state */) | 718 OmniboxFocusState /* state */) |
719 | 719 |
720 // Tells InstantExtended to paste text into the omnibox. If text is empty, | 720 // Tells InstantExtended to paste text into the omnibox. If text is empty, |
721 // the clipboard contents will be pasted. This causes the omnibox dropdown to | 721 // the clipboard contents will be pasted. This causes the omnibox dropdown to |
722 // open. | 722 // open. |
723 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown, | 723 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PasteAndOpenDropdown, |
724 int /* page_id */, | 724 int /* page_id */, |
725 string16 /* text to be pasted */) | 725 base::string16 /* text to be pasted */) |
726 | 726 |
727 // Tells InstantExtended whether the embedded search API is supported. | 727 // Tells InstantExtended whether the embedded search API is supported. |
728 // See http://dev.chromium.org/embeddedsearch | 728 // See http://dev.chromium.org/embeddedsearch |
729 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, | 729 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_InstantSupportDetermined, |
730 int /* page_id */, | 730 int /* page_id */, |
731 bool /* result */) | 731 bool /* result */) |
732 | 732 |
733 // Tells InstantExtended to delete a most visited item. | 733 // Tells InstantExtended to delete a most visited item. |
734 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem, | 734 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem, |
735 int /* page_id */, | 735 int /* page_id */, |
(...skipping 23 matching lines...) Expand all Loading... |
759 | 759 |
760 // Tells the renderer a list of URLs which should be bounced back to the browser | 760 // Tells the renderer a list of URLs which should be bounced back to the browser |
761 // process so that they can be assigned to an Instant renderer. | 761 // process so that they can be assigned to an Instant renderer. |
762 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 762 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
763 std::vector<GURL> /* search_urls */, | 763 std::vector<GURL> /* search_urls */, |
764 GURL /* new_tab_page_url */) | 764 GURL /* new_tab_page_url */) |
765 | 765 |
766 // Tells listeners that a detailed message was reported to the console by | 766 // Tells listeners that a detailed message was reported to the console by |
767 // WebKit. | 767 // WebKit. |
768 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, | 768 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, |
769 string16 /* message */, | 769 base::string16 /* message */, |
770 string16 /* source */, | 770 base::string16 /* source */, |
771 extensions::StackTrace /* stack trace */, | 771 extensions::StackTrace /* stack trace */, |
772 int32 /* severity level */) | 772 int32 /* severity level */) |
OLD | NEW |