| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/process.h" | 13 #include "base/process.h" |
| 14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "chrome/common/autocomplete_match_type.h" | 19 #include "chrome/common/autocomplete_match_type.h" |
| 20 #include "chrome/common/common_param_traits.h" | 20 #include "chrome/common/common_param_traits.h" |
| 21 #include "chrome/common/content_settings.h" | 21 #include "chrome/common/content_settings.h" |
| 22 #include "chrome/common/content_settings_pattern.h" | 22 #include "chrome/common/content_settings_pattern.h" |
| 23 #include "chrome/common/instant_types.h" | 23 #include "chrome/common/instant_types.h" |
| 24 #include "chrome/common/nacl_types.h" | |
| 25 #include "chrome/common/omnibox_focus_state.h" | 24 #include "chrome/common/omnibox_focus_state.h" |
| 26 #include "chrome/common/search_provider.h" | 25 #include "chrome/common/search_provider.h" |
| 27 #include "chrome/common/search_types.h" | 26 #include "chrome/common/search_types.h" |
| 28 #include "chrome/common/translate/language_detection_details.h" | 27 #include "chrome/common/translate/language_detection_details.h" |
| 29 #include "chrome/common/translate/translate_errors.h" | 28 #include "chrome/common/translate/translate_errors.h" |
| 30 #include "content/public/common/common_param_traits.h" | 29 #include "content/public/common/common_param_traits.h" |
| 31 #include "content/public/common/top_controls_state.h" | 30 #include "content/public/common/top_controls_state.h" |
| 32 #include "ipc/ipc_channel_handle.h" | 31 #include "ipc/ipc_channel_handle.h" |
| 33 #include "ipc/ipc_message_macros.h" | 32 #include "ipc/ipc_message_macros.h" |
| 34 #include "ipc/ipc_platform_file.h" | 33 #include "ipc/ipc_platform_file.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 IPC_STRUCT_TRAITS_MEMBER(autocomplete_match_index) | 188 IPC_STRUCT_TRAITS_MEMBER(autocomplete_match_index) |
| 190 IPC_STRUCT_TRAITS_END() | 189 IPC_STRUCT_TRAITS_END() |
| 191 | 190 |
| 192 IPC_ENUM_TRAITS(SearchMode::Type) | 191 IPC_ENUM_TRAITS(SearchMode::Type) |
| 193 IPC_ENUM_TRAITS(SearchMode::Origin) | 192 IPC_ENUM_TRAITS(SearchMode::Origin) |
| 194 IPC_STRUCT_TRAITS_BEGIN(SearchMode) | 193 IPC_STRUCT_TRAITS_BEGIN(SearchMode) |
| 195 IPC_STRUCT_TRAITS_MEMBER(mode) | 194 IPC_STRUCT_TRAITS_MEMBER(mode) |
| 196 IPC_STRUCT_TRAITS_MEMBER(origin) | 195 IPC_STRUCT_TRAITS_MEMBER(origin) |
| 197 IPC_STRUCT_TRAITS_END() | 196 IPC_STRUCT_TRAITS_END() |
| 198 | 197 |
| 199 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchParams) | |
| 200 IPC_STRUCT_TRAITS_MEMBER(manifest_url) | |
| 201 IPC_STRUCT_TRAITS_MEMBER(render_view_id) | |
| 202 IPC_STRUCT_TRAITS_MEMBER(permission_bits) | |
| 203 IPC_STRUCT_TRAITS_MEMBER(uses_irt) | |
| 204 IPC_STRUCT_TRAITS_MEMBER(enable_dyncode_syscalls) | |
| 205 IPC_STRUCT_TRAITS_END() | |
| 206 | |
| 207 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules) | 198 IPC_STRUCT_TRAITS_BEGIN(RendererContentSettingRules) |
| 208 IPC_STRUCT_TRAITS_MEMBER(image_rules) | 199 IPC_STRUCT_TRAITS_MEMBER(image_rules) |
| 209 IPC_STRUCT_TRAITS_MEMBER(script_rules) | 200 IPC_STRUCT_TRAITS_MEMBER(script_rules) |
| 210 IPC_STRUCT_TRAITS_END() | 201 IPC_STRUCT_TRAITS_END() |
| 211 | 202 |
| 212 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo) | 203 IPC_STRUCT_TRAITS_BEGIN(ThemeBackgroundInfo) |
| 213 IPC_STRUCT_TRAITS_MEMBER(color_r) | 204 IPC_STRUCT_TRAITS_MEMBER(color_r) |
| 214 IPC_STRUCT_TRAITS_MEMBER(color_g) | 205 IPC_STRUCT_TRAITS_MEMBER(color_g) |
| 215 IPC_STRUCT_TRAITS_MEMBER(color_b) | 206 IPC_STRUCT_TRAITS_MEMBER(color_b) |
| 216 IPC_STRUCT_TRAITS_MEMBER(color_a) | 207 IPC_STRUCT_TRAITS_MEMBER(color_a) |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 578 |
| 588 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows. | 579 // Tells the renderer that the NPAPI cannot be used. For example Ash on windows. |
| 589 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported) | 580 IPC_MESSAGE_ROUTED0(ChromeViewMsg_NPAPINotSupported) |
| 590 | 581 |
| 591 // A message for an external host. | 582 // A message for an external host. |
| 592 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, | 583 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, |
| 593 std::string /* message */, | 584 std::string /* message */, |
| 594 std::string /* origin */, | 585 std::string /* origin */, |
| 595 std::string /* target */) | 586 std::string /* target */) |
| 596 | 587 |
| 597 // A renderer sends this to the browser process when it wants to start | |
| 598 // a new instance of the Native Client process. The browser will launch | |
| 599 // the process and return an IPC channel handle. This handle will only | |
| 600 // be valid if the NaCl IPC proxy is enabled. | |
| 601 IPC_SYNC_MESSAGE_CONTROL1_4(ChromeViewHostMsg_LaunchNaCl, | |
| 602 nacl::NaClLaunchParams /* launch_params */, | |
| 603 nacl::FileDescriptor /* imc channel handle */, | |
| 604 IPC::ChannelHandle /* ipc_channel_handle */, | |
| 605 base::ProcessId /* plugin_pid */, | |
| 606 int /* plugin_child_id */) | |
| 607 | |
| 608 // A renderer sends this to the browser process when it wants to | |
| 609 // open a file for from the Pnacl component directory. | |
| 610 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_GetReadonlyPnaclFD, | |
| 611 std::string /* name of requested PNaCl file */, | |
| 612 IPC::PlatformFileForTransit /* output file */) | |
| 613 | |
| 614 // A renderer sends this to the browser process when it wants to | |
| 615 // create a temporary file. | |
| 616 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_NaClCreateTemporaryFile, | |
| 617 IPC::PlatformFileForTransit /* out file */) | |
| 618 | |
| 619 // A renderer sends this to the browser process to display infobar | |
| 620 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_NaClErrorStatus, | |
| 621 int /* render_view_id */, | |
| 622 int /* Error ID */) | |
| 623 | |
| 624 // A renderer sends this to the browser process when it wants to | |
| 625 // open a NaCl executable file from an installed application directory. | |
| 626 IPC_SYNC_MESSAGE_CONTROL2_3(ChromeViewHostMsg_OpenNaClExecutable, | |
| 627 int /* render_view_id */, | |
| 628 GURL /* URL of NaCl executable file */, | |
| 629 IPC::PlatformFileForTransit /* output file */, | |
| 630 uint64_t /* file_token_lo */, | |
| 631 uint64_t /* file_token_hi */) | |
| 632 | |
| 633 // Notification that the page has an OpenSearch description document | 588 // Notification that the page has an OpenSearch description document |
| 634 // associated with it. | 589 // associated with it. |
| 635 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, | 590 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_PageHasOSDD, |
| 636 int32 /* page_id */, | 591 int32 /* page_id */, |
| 637 GURL /* url of OS description document */, | 592 GURL /* url of OS description document */, |
| 638 search_provider::OSDDType) | 593 search_provider::OSDDType) |
| 639 | 594 |
| 640 // Find out if the given url's security origin is installed as a search | 595 // Find out if the given url's security origin is installed as a search |
| 641 // provider. | 596 // provider. |
| 642 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, | 597 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 // previous SetCookie message to be processed. | 731 // previous SetCookie message to be processed. |
| 777 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 732 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
| 778 GURL /* url */, | 733 GURL /* url */, |
| 779 GURL /* first_party_for_cookies */, | 734 GURL /* first_party_for_cookies */, |
| 780 std::string /* cookies */) | 735 std::string /* cookies */) |
| 781 | 736 |
| 782 // Provide the browser process with current renderer framerate. | 737 // Provide the browser process with current renderer framerate. |
| 783 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 738 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
| 784 int /* routing id */, | 739 int /* routing id */, |
| 785 float /* frames per second */) | 740 float /* frames per second */) |
| OLD | NEW |