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

Side by Side Diff: content/common/frame_messages.h

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge 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 | « content/common/all_messages.h ('k') | content/common/native_types.typemap » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // IPC messages for interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 24 matching lines...) Expand all
35 #include "content/public/common/frame_navigate_params.h" 35 #include "content/public/common/frame_navigate_params.h"
36 #include "content/public/common/javascript_message_type.h" 36 #include "content/public/common/javascript_message_type.h"
37 #include "content/public/common/page_importance_signals.h" 37 #include "content/public/common/page_importance_signals.h"
38 #include "content/public/common/page_state.h" 38 #include "content/public/common/page_state.h"
39 #include "content/public/common/resource_response.h" 39 #include "content/public/common/resource_response.h"
40 #include "content/public/common/stop_find_action.h" 40 #include "content/public/common/stop_find_action.h"
41 #include "content/public/common/three_d_api_types.h" 41 #include "content/public/common/three_d_api_types.h"
42 #include "content/public/common/transition_element.h" 42 #include "content/public/common/transition_element.h"
43 #include "ipc/ipc_message_macros.h" 43 #include "ipc/ipc_message_macros.h"
44 #include "ipc/ipc_platform_file.h" 44 #include "ipc/ipc_platform_file.h"
45 #include "ppapi/features/features.h"
45 #include "third_party/WebKit/public/platform/WebFocusType.h" 46 #include "third_party/WebKit/public/platform/WebFocusType.h"
46 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 47 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
47 #include "third_party/WebKit/public/web/WebFindOptions.h" 48 #include "third_party/WebKit/public/web/WebFindOptions.h"
48 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 49 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
49 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" 50 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
50 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 51 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
51 #include "ui/gfx/geometry/rect.h" 52 #include "ui/gfx/geometry/rect.h"
52 #include "ui/gfx/geometry/rect_f.h" 53 #include "ui/gfx/geometry/rect_f.h"
53 #include "ui/gfx/ipc/gfx_param_traits.h" 54 #include "ui/gfx/ipc/gfx_param_traits.h"
54 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 55 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
55 #include "ui/gfx/range/range.h" 56 #include "ui/gfx/range/range.h"
56 #include "url/gurl.h" 57 #include "url/gurl.h"
57 #include "url/origin.h" 58 #include "url/origin.h"
58 59
59 #if defined(ENABLE_PLUGINS) 60 #if BUILDFLAG(ENABLE_PLUGINS)
60 #include "content/common/pepper_renderer_instance_data.h" 61 #include "content/common/pepper_renderer_instance_data.h"
61 #endif 62 #endif
62 63
63 // Singly-included section for type definitions. 64 // Singly-included section for type definitions.
64 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_ 65 #ifndef CONTENT_COMMON_FRAME_MESSAGES_H_
65 #define CONTENT_COMMON_FRAME_MESSAGES_H_ 66 #define CONTENT_COMMON_FRAME_MESSAGES_H_
66 67
67 using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap = 68 using FrameMsg_GetSerializedHtmlWithLocalLinks_UrlMap =
68 std::map<GURL, base::FilePath>; 69 std::map<GURL, base::FilePath>;
69 using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap = 70 using FrameMsg_GetSerializedHtmlWithLocalLinks_FrameRoutingIdMap =
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items) 569 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items)
569 570
570 // Whether items should be right-aligned. 571 // Whether items should be right-aligned.
571 IPC_STRUCT_MEMBER(bool, right_aligned) 572 IPC_STRUCT_MEMBER(bool, right_aligned)
572 573
573 // Whether this is a multi-select popup. 574 // Whether this is a multi-select popup.
574 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) 575 IPC_STRUCT_MEMBER(bool, allow_multiple_selection)
575 IPC_STRUCT_END() 576 IPC_STRUCT_END()
576 #endif 577 #endif
577 578
578 #if defined(ENABLE_PLUGINS) 579 #if BUILDFLAG(ENABLE_PLUGINS)
579 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) 580 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData)
580 IPC_STRUCT_TRAITS_MEMBER(render_process_id) 581 IPC_STRUCT_TRAITS_MEMBER(render_process_id)
581 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) 582 IPC_STRUCT_TRAITS_MEMBER(render_frame_id)
582 IPC_STRUCT_TRAITS_MEMBER(document_url) 583 IPC_STRUCT_TRAITS_MEMBER(document_url)
583 IPC_STRUCT_TRAITS_MEMBER(plugin_url) 584 IPC_STRUCT_TRAITS_MEMBER(plugin_url)
584 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context) 585 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context)
585 IPC_STRUCT_TRAITS_END() 586 IPC_STRUCT_TRAITS_END()
586 #endif 587 #endif
587 588
588 // ----------------------------------------------------------------------------- 589 // -----------------------------------------------------------------------------
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 IPC_MESSAGE_ROUTED2(FrameMsg_CopyImageAt, 902 IPC_MESSAGE_ROUTED2(FrameMsg_CopyImageAt,
902 int /* x */, 903 int /* x */,
903 int /* y */) 904 int /* y */)
904 905
905 // Saves the image at location x, y to the disk (if there indeed is an 906 // Saves the image at location x, y to the disk (if there indeed is an
906 // image at that location). 907 // image at that location).
907 IPC_MESSAGE_ROUTED2(FrameMsg_SaveImageAt, 908 IPC_MESSAGE_ROUTED2(FrameMsg_SaveImageAt,
908 int /* x */, 909 int /* x */,
909 int /* y */) 910 int /* y */)
910 911
911 #if defined(ENABLE_PLUGINS) 912 #if BUILDFLAG(ENABLE_PLUGINS)
912 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. 913 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist.
913 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, 914 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist,
914 std::set<url::Origin> /* origin_whitelist */) 915 std::set<url::Origin> /* origin_whitelist */)
915 916
916 // This message notifies that the frame that the volume of the Pepper instance 917 // This message notifies that the frame that the volume of the Pepper instance
917 // for |pp_instance| should be changed to |volume|. 918 // for |pp_instance| should be changed to |volume|.
918 IPC_MESSAGE_ROUTED2(FrameMsg_SetPepperVolume, 919 IPC_MESSAGE_ROUTED2(FrameMsg_SetPepperVolume,
919 int32_t /* pp_instance */, 920 int32_t /* pp_instance */,
920 double /* volume */) 921 double /* volume */)
921 #endif // defined(ENABLE_PLUGINS) 922 #endif // BUILDFLAG(ENABLE_PLUGINS)
922 923
923 // Used to instruct the RenderFrame to go into "view source" mode. This should 924 // Used to instruct the RenderFrame to go into "view source" mode. This should
924 // only be sent to the main frame. 925 // only be sent to the main frame.
925 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) 926 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode)
926 927
927 // Tells the frame to suppress any further modal dialogs. This ensures that no 928 // Tells the frame to suppress any further modal dialogs. This ensures that no
928 // ScopedPageLoadDeferrer is on the stack for SwapOut. 929 // ScopedPageLoadDeferrer is on the stack for SwapOut.
929 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs) 930 IPC_MESSAGE_ROUTED0(FrameMsg_SuppressFurtherDialogs)
930 931
931 // Tells the frame to consider itself to have received a user gesture (based 932 // Tells the frame to consider itself to have received a user gesture (based
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 bool /* cookies_enabled */) 1123 bool /* cookies_enabled */)
1123 1124
1124 // Sent by the renderer process to check whether client 3D APIs 1125 // Sent by the renderer process to check whether client 3D APIs
1125 // (Pepper 3D, WebGL) are explicitly blocked. 1126 // (Pepper 3D, WebGL) are explicitly blocked.
1126 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, 1127 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked,
1127 int /* render_frame_id */, 1128 int /* render_frame_id */,
1128 GURL /* top_origin_url */, 1129 GURL /* top_origin_url */,
1129 content::ThreeDAPIType /* requester */, 1130 content::ThreeDAPIType /* requester */,
1130 bool /* blocked */) 1131 bool /* blocked */)
1131 1132
1132 #if defined(ENABLE_PLUGINS) 1133 #if BUILDFLAG(ENABLE_PLUGINS)
1133 // Notification sent from a renderer to the browser that a Pepper plugin 1134 // Notification sent from a renderer to the browser that a Pepper plugin
1134 // instance is created in the DOM. 1135 // instance is created in the DOM.
1135 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated, 1136 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated,
1136 int32_t /* pp_instance */) 1137 int32_t /* pp_instance */)
1137 1138
1138 // Notification sent from a renderer to the browser that a Pepper plugin 1139 // Notification sent from a renderer to the browser that a Pepper plugin
1139 // instance is deleted from the DOM. 1140 // instance is deleted from the DOM.
1140 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted, 1141 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted,
1141 int32_t /* pp_instance */) 1142 int32_t /* pp_instance */)
1142 1143
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 IPC_MESSAGE_CONTROL2(FrameHostMsg_OpenChannelToPpapiBroker, 1259 IPC_MESSAGE_CONTROL2(FrameHostMsg_OpenChannelToPpapiBroker,
1259 int /* routing_id */, 1260 int /* routing_id */,
1260 base::FilePath /* path */) 1261 base::FilePath /* path */)
1261 1262
1262 // A renderer sends this to the browser process when it throttles or unthrottles 1263 // A renderer sends this to the browser process when it throttles or unthrottles
1263 // a plugin instance for the Plugin Power Saver feature. 1264 // a plugin instance for the Plugin Power Saver feature.
1264 IPC_MESSAGE_CONTROL3(FrameHostMsg_PluginInstanceThrottleStateChange, 1265 IPC_MESSAGE_CONTROL3(FrameHostMsg_PluginInstanceThrottleStateChange,
1265 int /* plugin_child_id */, 1266 int /* plugin_child_id */,
1266 int32_t /* pp_instance */, 1267 int32_t /* pp_instance */,
1267 bool /* is_throttled */) 1268 bool /* is_throttled */)
1268 #endif // defined(ENABLE_PLUGINS) 1269 #endif // BUILDFLAG(ENABLE_PLUGINS)
1269 1270
1270 // Satisfies a Surface destruction dependency associated with |sequence|. 1271 // Satisfies a Surface destruction dependency associated with |sequence|.
1271 IPC_MESSAGE_ROUTED1(FrameHostMsg_SatisfySequence, 1272 IPC_MESSAGE_ROUTED1(FrameHostMsg_SatisfySequence,
1272 cc::SurfaceSequence /* sequence */) 1273 cc::SurfaceSequence /* sequence */)
1273 1274
1274 // Creates a destruction dependency for the Surface specified by the given 1275 // Creates a destruction dependency for the Surface specified by the given
1275 // |surface_id|. 1276 // |surface_id|.
1276 IPC_MESSAGE_ROUTED2(FrameHostMsg_RequireSequence, 1277 IPC_MESSAGE_ROUTED2(FrameHostMsg_RequireSequence,
1277 cc::SurfaceId /* surface_id */, 1278 cc::SurfaceId /* surface_id */,
1278 cc::SurfaceSequence /* sequence */) 1279 cc::SurfaceSequence /* sequence */)
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 // nearest find result in the sending frame. 1533 // nearest find result in the sending frame.
1533 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1534 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1534 int /* nfr_request_id */, 1535 int /* nfr_request_id */,
1535 float /* distance */) 1536 float /* distance */)
1536 #endif 1537 #endif
1537 1538
1538 // Adding a new message? Stick to the sort order above: first platform 1539 // Adding a new message? Stick to the sort order above: first platform
1539 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1540 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1540 // platform independent FrameHostMsg, then ifdefs for platform specific 1541 // platform independent FrameHostMsg, then ifdefs for platform specific
1541 // FrameHostMsg. 1542 // FrameHostMsg.
OLDNEW
« no previous file with comments | « content/common/all_messages.h ('k') | content/common/native_types.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698