| 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 <stdint.h> | 6 #include <stdint.h> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/common/search/instant_types.h" | 14 #include "chrome/common/search/instant_types.h" |
| 15 #include "chrome/common/search/ntp_logging_events.h" | 15 #include "chrome/common/search/ntp_logging_events.h" |
| 16 #include "chrome/common/web_application_info.h" | 16 #include "chrome/common/web_application_info.h" |
| 17 #include "components/content_settings/core/common/content_settings.h" | 17 #include "components/content_settings/core/common/content_settings.h" |
| 18 #include "components/content_settings/core/common/content_settings_pattern.h" | 18 #include "components/content_settings/core/common/content_settings_pattern.h" |
| 19 #include "components/content_settings/core/common/content_settings_types.h" | 19 #include "components/content_settings/core/common/content_settings_types.h" |
| 20 #include "components/omnibox/common/omnibox_focus_state.h" | 20 #include "components/omnibox/common/omnibox_focus_state.h" |
| 21 #include "content/public/common/top_controls_state.h" | 21 #include "content/public/common/top_controls_state.h" |
| 22 #include "content/public/common/webplugininfo.h" | 22 #include "content/public/common/webplugininfo.h" |
| 23 #include "ipc/ipc_channel_handle.h" | 23 #include "ipc/ipc_channel_handle.h" |
| 24 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
| 25 #include "ipc/ipc_platform_file.h" | 25 #include "ipc/ipc_platform_file.h" |
| 26 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" | |
| 27 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 26 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 28 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 27 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 29 #include "ui/base/window_open_disposition.h" | 28 #include "ui/base/window_open_disposition.h" |
| 30 #include "url/gurl.h" | 29 #include "url/gurl.h" |
| 31 #include "url/ipc/url_param_traits.h" | 30 #include "url/ipc/url_param_traits.h" |
| 32 #include "url/origin.h" | 31 #include "url/origin.h" |
| 33 | 32 |
| 34 // Singly-included section for enums and custom IPC traits. | 33 // Singly-included section for enums and custom IPC traits. |
| 35 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 34 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 36 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 35 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 IPC_STRUCT_TRAITS_END() | 178 IPC_STRUCT_TRAITS_END() |
| 180 | 179 |
| 181 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) | 180 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
| 182 IPC_STRUCT_TRAITS_MEMBER(title) | 181 IPC_STRUCT_TRAITS_MEMBER(title) |
| 183 IPC_STRUCT_TRAITS_MEMBER(description) | 182 IPC_STRUCT_TRAITS_MEMBER(description) |
| 184 IPC_STRUCT_TRAITS_MEMBER(app_url) | 183 IPC_STRUCT_TRAITS_MEMBER(app_url) |
| 185 IPC_STRUCT_TRAITS_MEMBER(icons) | 184 IPC_STRUCT_TRAITS_MEMBER(icons) |
| 186 IPC_STRUCT_TRAITS_MEMBER(mobile_capable) | 185 IPC_STRUCT_TRAITS_MEMBER(mobile_capable) |
| 187 IPC_STRUCT_TRAITS_END() | 186 IPC_STRUCT_TRAITS_END() |
| 188 | 187 |
| 189 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply, | |
| 190 blink::WebAppBannerPromptReply::Cancel) | |
| 191 | |
| 192 //----------------------------------------------------------------------------- | 188 //----------------------------------------------------------------------------- |
| 193 // RenderView messages | 189 // RenderView messages |
| 194 // These are messages sent from the browser to the renderer process. | 190 // These are messages sent from the browser to the renderer process. |
| 195 | 191 |
| 196 #if !defined(OS_ANDROID) | 192 #if !defined(OS_ANDROID) |
| 197 // For WebUI testing, this message requests JavaScript to be executed at a time | 193 // For WebUI testing, this message requests JavaScript to be executed at a time |
| 198 // which is late enough to not be thrown out, and early enough to be before | 194 // which is late enough to not be thrown out, and early enough to be before |
| 199 // onload events are fired. | 195 // onload events are fired. |
| 200 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, | 196 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, |
| 201 base::string16 /* javascript */) | 197 base::string16 /* javascript */) |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 // chrome:// URLs. | 488 // chrome:// URLs. |
| 493 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) | 489 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) |
| 494 | 490 |
| 495 // Tells the browser to show the Flash permission bubble in the same tab. | 491 // Tells the browser to show the Flash permission bubble in the same tab. |
| 496 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowFlashPermissionBubble) | 492 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowFlashPermissionBubble) |
| 497 | 493 |
| 498 // Tells the browser that there was an error loading a plugin. | 494 // Tells the browser that there was an error loading a plugin. |
| 499 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, | 495 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, |
| 500 base::FilePath /* plugin_path */) | 496 base::FilePath /* plugin_path */) |
| 501 | 497 |
| 502 // Asks the renderer whether an app banner should be shown. It will reply with | |
| 503 // ChromeViewHostMsg_AppBannerPromptReply. | |
| 504 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest, | |
| 505 int /* request_id */, | |
| 506 std::string /* platform */) | |
| 507 | |
| 508 // Tells the renderer that a banner has been accepted. | |
| 509 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted, | |
| 510 int32_t /* request_id */, | |
| 511 std::string /* platform */) | |
| 512 | |
| 513 // Tells the renderer that a banner has been dismissed. | |
| 514 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed, | |
| 515 int32_t /* request_id */) | |
| 516 | |
| 517 // Notification that the page has an OpenSearch description document | 498 // Notification that the page has an OpenSearch description document |
| 518 // associated with it. | 499 // associated with it. |
| 519 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, | 500 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, |
| 520 GURL /* page_url */, | 501 GURL /* page_url */, |
| 521 GURL /* osdd_url */) | 502 GURL /* osdd_url */) |
| 522 | 503 |
| 523 // Notifies when a plugin couldn't be loaded because it's outdated. | 504 // Notifies when a plugin couldn't be loaded because it's outdated. |
| 524 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, | 505 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, |
| 525 int /* placeholder ID */, | 506 int /* placeholder ID */, |
| 526 std::string /* plugin group identifier */) | 507 std::string /* plugin group identifier */) |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 596 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
| 616 std::vector<GURL> /* search_urls */, | 597 std::vector<GURL> /* search_urls */, |
| 617 GURL /* new_tab_page_url */) | 598 GURL /* new_tab_page_url */) |
| 618 | 599 |
| 619 #if defined(ENABLE_PLUGINS) | 600 #if defined(ENABLE_PLUGINS) |
| 620 // Sent by the renderer to check if crash reporting is enabled. | 601 // Sent by the renderer to check if crash reporting is enabled. |
| 621 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 602 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
| 622 bool /* enabled */) | 603 bool /* enabled */) |
| 623 #endif | 604 #endif |
| 624 | 605 |
| 625 // Tells the browser process whether the web page wants the banner to be shown. | |
| 626 // This is a reply from ChromeViewMsg_AppBannerPromptRequest. | |
| 627 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_AppBannerPromptReply, | |
| 628 int /* request_id */, | |
| 629 blink::WebAppBannerPromptReply /* reply */, | |
| 630 std::string /* referrer */) | |
| 631 | |
| 632 // Tells the browser to restart the app banner display pipeline. | |
| 633 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner, | |
| 634 int32_t /* request_id */) | |
| 635 | |
| 636 // Sent by the renderer to indicate that a fields trial has been activated. | 606 // Sent by the renderer to indicate that a fields trial has been activated. |
| 637 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated, | 607 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated, |
| 638 std::string /* name */) | 608 std::string /* name */) |
| 639 | 609 |
| 640 // Record a sample string to a Rappor metric. | 610 // Record a sample string to a Rappor metric. |
| 641 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 611 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
| 642 std::string /* metric */, | 612 std::string /* metric */, |
| 643 std::string /* sample */) | 613 std::string /* sample */) |
| 644 | 614 |
| 645 // Record a domain and registry of a url to a Rappor metric. | 615 // Record a domain and registry of a url to a Rappor metric. |
| 646 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 616 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
| 647 std::string /* metric */, | 617 std::string /* metric */, |
| 648 GURL /* sample url */) | 618 GURL /* sample url */) |
| OLD | NEW |