| 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/omnibox/common/omnibox_focus_state.h" | 19 #include "components/omnibox/common/omnibox_focus_state.h" |
| 20 #include "content/public/common/top_controls_state.h" | 20 #include "content/public/common/top_controls_state.h" |
| 21 #include "content/public/common/webplugininfo.h" | 21 #include "content/public/common/webplugininfo.h" |
| 22 #include "ipc/ipc_channel_handle.h" | 22 #include "ipc/ipc_channel_handle.h" |
| 23 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
| 24 #include "ipc/ipc_platform_file.h" | 24 #include "ipc/ipc_platform_file.h" |
| 25 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" | |
| 26 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 25 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
| 27 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 26 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
| 28 #include "ui/base/window_open_disposition.h" | 27 #include "ui/base/window_open_disposition.h" |
| 29 #include "url/ipc/url_param_traits.h" | 28 #include "url/ipc/url_param_traits.h" |
| 30 | 29 |
| 31 // Singly-included section for enums and custom IPC traits. | 30 // Singly-included section for enums and custom IPC traits. |
| 32 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 31 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 33 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 32 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 34 | 33 |
| 35 // These are only used internally, so the order does not matter. | 34 // These are only used internally, so the order does not matter. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 IPC_STRUCT_TRAITS_END() | 175 IPC_STRUCT_TRAITS_END() |
| 177 | 176 |
| 178 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) | 177 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
| 179 IPC_STRUCT_TRAITS_MEMBER(title) | 178 IPC_STRUCT_TRAITS_MEMBER(title) |
| 180 IPC_STRUCT_TRAITS_MEMBER(description) | 179 IPC_STRUCT_TRAITS_MEMBER(description) |
| 181 IPC_STRUCT_TRAITS_MEMBER(app_url) | 180 IPC_STRUCT_TRAITS_MEMBER(app_url) |
| 182 IPC_STRUCT_TRAITS_MEMBER(icons) | 181 IPC_STRUCT_TRAITS_MEMBER(icons) |
| 183 IPC_STRUCT_TRAITS_MEMBER(mobile_capable) | 182 IPC_STRUCT_TRAITS_MEMBER(mobile_capable) |
| 184 IPC_STRUCT_TRAITS_END() | 183 IPC_STRUCT_TRAITS_END() |
| 185 | 184 |
| 186 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply, | |
| 187 blink::WebAppBannerPromptReply::Cancel) | |
| 188 | |
| 189 //----------------------------------------------------------------------------- | 185 //----------------------------------------------------------------------------- |
| 190 // RenderView messages | 186 // RenderView messages |
| 191 // These are messages sent from the browser to the renderer process. | 187 // These are messages sent from the browser to the renderer process. |
| 192 | 188 |
| 193 #if !defined(OS_ANDROID) | 189 #if !defined(OS_ANDROID) |
| 194 // For WebUI testing, this message requests JavaScript to be executed at a time | 190 // For WebUI testing, this message requests JavaScript to be executed at a time |
| 195 // which is late enough to not be thrown out, and early enough to be before | 191 // which is late enough to not be thrown out, and early enough to be before |
| 196 // onload events are fired. | 192 // onload events are fired. |
| 197 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, | 193 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, |
| 198 base::string16 /* javascript */) | 194 base::string16 /* javascript */) |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 // chrome:// URLs. | 420 // chrome:// URLs. |
| 425 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) | 421 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) |
| 426 | 422 |
| 427 // Tells the browser to show the Flash permission bubble in the same tab. | 423 // Tells the browser to show the Flash permission bubble in the same tab. |
| 428 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowFlashPermissionBubble) | 424 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowFlashPermissionBubble) |
| 429 | 425 |
| 430 // Tells the browser that there was an error loading a plugin. | 426 // Tells the browser that there was an error loading a plugin. |
| 431 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, | 427 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, |
| 432 base::FilePath /* plugin_path */) | 428 base::FilePath /* plugin_path */) |
| 433 | 429 |
| 434 // Asks the renderer whether an app banner should be shown. It will reply with | |
| 435 // ChromeViewHostMsg_AppBannerPromptReply. | |
| 436 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest, | |
| 437 int /* request_id */, | |
| 438 std::string /* platform */) | |
| 439 | |
| 440 // Tells the renderer that a banner has been accepted. | |
| 441 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted, | |
| 442 int32_t /* request_id */, | |
| 443 std::string /* platform */) | |
| 444 | |
| 445 // Tells the renderer that a banner has been dismissed. | |
| 446 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed, | |
| 447 int32_t /* request_id */) | |
| 448 | |
| 449 // Notification that the page has an OpenSearch description document | 430 // Notification that the page has an OpenSearch description document |
| 450 // associated with it. | 431 // associated with it. |
| 451 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, | 432 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, |
| 452 GURL /* page_url */, | 433 GURL /* page_url */, |
| 453 GURL /* osdd_url */) | 434 GURL /* osdd_url */) |
| 454 | 435 |
| 455 // Notifies when a plugin couldn't be loaded because it's outdated. | 436 // Notifies when a plugin couldn't be loaded because it's outdated. |
| 456 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, | 437 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, |
| 457 int /* placeholder ID */, | 438 int /* placeholder ID */, |
| 458 std::string /* plugin group identifier */) | 439 std::string /* plugin group identifier */) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 524 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
| 544 std::vector<GURL> /* search_urls */, | 525 std::vector<GURL> /* search_urls */, |
| 545 GURL /* new_tab_page_url */) | 526 GURL /* new_tab_page_url */) |
| 546 | 527 |
| 547 #if defined(ENABLE_PLUGINS) | 528 #if defined(ENABLE_PLUGINS) |
| 548 // Sent by the renderer to check if crash reporting is enabled. | 529 // Sent by the renderer to check if crash reporting is enabled. |
| 549 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 530 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
| 550 bool /* enabled */) | 531 bool /* enabled */) |
| 551 #endif | 532 #endif |
| 552 | 533 |
| 553 // Tells the browser process whether the web page wants the banner to be shown. | |
| 554 // This is a reply from ChromeViewMsg_AppBannerPromptRequest. | |
| 555 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_AppBannerPromptReply, | |
| 556 int /* request_id */, | |
| 557 blink::WebAppBannerPromptReply /* reply */, | |
| 558 std::string /* referrer */) | |
| 559 | |
| 560 // Tells the browser to restart the app banner display pipeline. | |
| 561 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner, | |
| 562 int32_t /* request_id */) | |
| 563 | |
| 564 // Sent by the renderer to indicate that a fields trial has been activated. | 534 // Sent by the renderer to indicate that a fields trial has been activated. |
| 565 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated, | 535 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated, |
| 566 std::string /* name */) | 536 std::string /* name */) |
| 567 | 537 |
| 568 // Record a sample string to a Rappor metric. | 538 // Record a sample string to a Rappor metric. |
| 569 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 539 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
| 570 std::string /* metric */, | 540 std::string /* metric */, |
| 571 std::string /* sample */) | 541 std::string /* sample */) |
| 572 | 542 |
| 573 // Record a domain and registry of a url to a Rappor metric. | 543 // Record a domain and registry of a url to a Rappor metric. |
| 574 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 544 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
| 575 std::string /* metric */, | 545 std::string /* metric */, |
| 576 GURL /* sample url */) | 546 GURL /* sample url */) |
| OLD | NEW |