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

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

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/banners/app_banner_manager_desktop.cc ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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/features.h" 14 #include "chrome/common/features.h"
15 #include "chrome/common/search/instant_types.h" 15 #include "chrome/common/search/instant_types.h"
16 #include "chrome/common/search/ntp_logging_events.h" 16 #include "chrome/common/search/ntp_logging_events.h"
17 #include "chrome/common/web_application_info.h" 17 #include "chrome/common/web_application_info.h"
18 #include "components/content_settings/core/common/content_settings.h" 18 #include "components/content_settings/core/common/content_settings.h"
19 #include "components/content_settings/core/common/content_settings_pattern.h" 19 #include "components/content_settings/core/common/content_settings_pattern.h"
20 #include "components/content_settings/core/common/content_settings_types.h" 20 #include "components/content_settings/core/common/content_settings_types.h"
21 #include "components/omnibox/common/omnibox_focus_state.h" 21 #include "components/omnibox/common/omnibox_focus_state.h"
22 #include "content/public/common/top_controls_state.h" 22 #include "content/public/common/top_controls_state.h"
23 #include "content/public/common/webplugininfo.h" 23 #include "content/public/common/webplugininfo.h"
24 #include "ipc/ipc_channel_handle.h" 24 #include "ipc/ipc_channel_handle.h"
25 #include "ipc/ipc_message_macros.h" 25 #include "ipc/ipc_message_macros.h"
26 #include "ipc/ipc_platform_file.h" 26 #include "ipc/ipc_platform_file.h"
27 #include "ppapi/features/features.h" 27 #include "ppapi/features/features.h"
28 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h"
29 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 28 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
30 #include "third_party/WebKit/public/web/WebWindowFeatures.h" 29 #include "third_party/WebKit/public/web/WebWindowFeatures.h"
31 #include "ui/base/window_open_disposition.h" 30 #include "ui/base/window_open_disposition.h"
32 #include "url/gurl.h" 31 #include "url/gurl.h"
33 #include "url/ipc/url_param_traits.h" 32 #include "url/ipc/url_param_traits.h"
34 #include "url/origin.h" 33 #include "url/origin.h"
35 34
36 // Singly-included section for enums and custom IPC traits. 35 // Singly-included section for enums and custom IPC traits.
37 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 36 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
38 #define CHROME_COMMON_RENDER_MESSAGES_H_ 37 #define CHROME_COMMON_RENDER_MESSAGES_H_
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 IPC_STRUCT_TRAITS_END() 181 IPC_STRUCT_TRAITS_END()
183 182
184 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) 183 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
185 IPC_STRUCT_TRAITS_MEMBER(title) 184 IPC_STRUCT_TRAITS_MEMBER(title)
186 IPC_STRUCT_TRAITS_MEMBER(description) 185 IPC_STRUCT_TRAITS_MEMBER(description)
187 IPC_STRUCT_TRAITS_MEMBER(app_url) 186 IPC_STRUCT_TRAITS_MEMBER(app_url)
188 IPC_STRUCT_TRAITS_MEMBER(icons) 187 IPC_STRUCT_TRAITS_MEMBER(icons)
189 IPC_STRUCT_TRAITS_MEMBER(mobile_capable) 188 IPC_STRUCT_TRAITS_MEMBER(mobile_capable)
190 IPC_STRUCT_TRAITS_END() 189 IPC_STRUCT_TRAITS_END()
191 190
192 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebAppBannerPromptReply,
193 blink::WebAppBannerPromptReply::Cancel)
194
195 //----------------------------------------------------------------------------- 191 //-----------------------------------------------------------------------------
196 // RenderView messages 192 // RenderView messages
197 // These are messages sent from the browser to the renderer process. 193 // These are messages sent from the browser to the renderer process.
198 194
199 #if !defined(OS_ANDROID) 195 #if !defined(OS_ANDROID)
200 // For WebUI testing, this message requests JavaScript to be executed at a time 196 // For WebUI testing, this message requests JavaScript to be executed at a time
201 // which is late enough to not be thrown out, and early enough to be before 197 // which is late enough to not be thrown out, and early enough to be before
202 // onload events are fired. 198 // onload events are fired.
203 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript, 199 IPC_MESSAGE_ROUTED1(ChromeViewMsg_WebUIJavaScript,
204 base::string16 /* javascript */) 200 base::string16 /* javascript */)
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // chrome:// URLs. 491 // chrome:// URLs.
496 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) 492 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
497 493
498 // Tells the browser to show the Flash permission bubble in the same tab. 494 // Tells the browser to show the Flash permission bubble in the same tab.
499 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowFlashPermissionBubble) 495 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_ShowFlashPermissionBubble)
500 496
501 // Tells the browser that there was an error loading a plugin. 497 // Tells the browser that there was an error loading a plugin.
502 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, 498 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
503 base::FilePath /* plugin_path */) 499 base::FilePath /* plugin_path */)
504 500
505 // Asks the renderer whether an app banner should be shown. It will reply with
506 // ChromeViewHostMsg_AppBannerPromptReply.
507 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerPromptRequest,
508 int /* request_id */,
509 std::string /* platform */)
510
511 // Tells the renderer that a banner has been accepted.
512 IPC_MESSAGE_ROUTED2(ChromeViewMsg_AppBannerAccepted,
513 int32_t /* request_id */,
514 std::string /* platform */)
515
516 // Tells the renderer that a banner has been dismissed.
517 IPC_MESSAGE_ROUTED1(ChromeViewMsg_AppBannerDismissed,
518 int32_t /* request_id */)
519
520 // Notification that the page has an OpenSearch description document 501 // Notification that the page has an OpenSearch description document
521 // associated with it. 502 // associated with it.
522 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD, 503 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_PageHasOSDD,
523 GURL /* page_url */, 504 GURL /* page_url */,
524 GURL /* osdd_url */) 505 GURL /* osdd_url */)
525 506
526 // Notifies when a plugin couldn't be loaded because it's outdated. 507 // Notifies when a plugin couldn't be loaded because it's outdated.
527 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin, 508 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_BlockedOutdatedPlugin,
528 int /* placeholder ID */, 509 int /* placeholder ID */,
529 std::string /* plugin group identifier */) 510 std::string /* plugin group identifier */)
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, 599 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
619 std::vector<GURL> /* search_urls */, 600 std::vector<GURL> /* search_urls */,
620 GURL /* new_tab_page_url */) 601 GURL /* new_tab_page_url */)
621 602
622 #if defined(ENABLE_PLUGINS) 603 #if defined(ENABLE_PLUGINS)
623 // Sent by the renderer to check if crash reporting is enabled. 604 // Sent by the renderer to check if crash reporting is enabled.
624 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, 605 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
625 bool /* enabled */) 606 bool /* enabled */)
626 #endif 607 #endif
627 608
628 // Tells the browser process whether the web page wants the banner to be shown.
629 // This is a reply from ChromeViewMsg_AppBannerPromptRequest.
630 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_AppBannerPromptReply,
631 int /* request_id */,
632 blink::WebAppBannerPromptReply /* reply */,
633 std::string /* referrer */)
634
635 // Tells the browser to restart the app banner display pipeline.
636 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_RequestShowAppBanner,
637 int32_t /* request_id */)
638
639 // Sent by the renderer to indicate that a fields trial has been activated. 609 // Sent by the renderer to indicate that a fields trial has been activated.
640 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated, 610 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_FieldTrialActivated,
641 std::string /* name */) 611 std::string /* name */)
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_manager_desktop.cc ('k') | chrome/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698