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

Side by Side Diff: content/common/render_message_filter.mojom

Issue 2506183002: Make window.open() IPCs be frame-based (Closed)
Patch Set: Rebase. Created 3 years, 11 months 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/frame_messages.h ('k') | content/common/swapped_out_messages.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module content.mojom; 5 module content.mojom;
6 6
7 import "content/common/native_types.mojom"; 7 import "content/common/native_types.mojom";
8 import "content/public/common/window_container_type.mojom"; 8 import "content/public/common/window_container_type.mojom";
9 import "gpu/ipc/common/mailbox.mojom"; 9 import "gpu/ipc/common/mailbox.mojom";
10 import "third_party/WebKit/public/platform/referrer.mojom"; 10 import "third_party/WebKit/public/platform/referrer.mojom";
11 import "third_party/WebKit/public/web/window_features.mojom"; 11 import "third_party/WebKit/public/web/window_features.mojom";
12 import "ui/base/mojo/window_open_disposition.mojom"; 12 import "ui/base/mojo/window_open_disposition.mojom";
13 import "url/mojo/url.mojom"; 13 import "url/mojo/url.mojom";
14 14
15 struct CreateNewWindowParams { 15 struct CreateNewWindowParams {
16 // Routing ID of the view initiating the open. 16 // The routing id of the frame initiating the open.
17 int32 opener_id; 17 int32 opener_render_frame_id;
18 18
19 // True if this open request came in the context of a user gesture. 19 // True if this open request came in the context of a user gesture.
20 bool user_gesture; 20 bool user_gesture;
21 21
22 // Type of window requested. 22 // Type of window requested.
23 WindowContainerType window_container_type; 23 WindowContainerType window_container_type;
24 24
25 // The session storage namespace ID this view should use. 25 // The session storage namespace ID this view should use.
26 int64 session_storage_namespace_id; 26 int64 session_storage_namespace_id;
27 27
28 // The name of the resulting frame that should be created (empty if none 28 // The name of the resulting frame that should be created (empty if none
29 // has been specified). UTF8 encoded string. 29 // has been specified). UTF8 encoded string.
30 string frame_name; 30 string frame_name;
31 31
32 // The routing id of the frame initiating the open.
33 int32 opener_render_frame_id;
34
35 // The URL of the frame initiating the open. 32 // The URL of the frame initiating the open.
36 url.mojom.Url opener_url; 33 url.mojom.Url opener_url;
37 34
38 // The URL of the top frame containing the opener. 35 // The URL of the top frame containing the opener.
39 url.mojom.Url opener_top_level_frame_url; 36 url.mojom.Url opener_top_level_frame_url;
40 37
41 // The security origin of the frame initiating the open. 38 // The security origin of the frame initiating the open.
42 url.mojom.Url opener_security_origin; 39 url.mojom.Url opener_security_origin;
43 40
44 // Whether the opener will be suppressed in the new window, in which case 41 // Whether the opener will be suppressed in the new window, in which case
45 // scripting the new window is not allowed. 42 // scripting the new window is not allowed.
46 bool opener_suppressed; 43 bool opener_suppressed;
47 44
48 // Whether the window should be opened in the foreground, background, etc. 45 // Whether the window should be opened in the foreground, background, etc.
49 ui.mojom.WindowOpenDisposition disposition; 46 ui.mojom.WindowOpenDisposition disposition;
50 47
51 // The URL that will be loaded in the new window (empty if none has been 48 // The URL that will be loaded in the new window (empty if none has been
52 // sepcified). 49 // specified).
53 url.mojom.Url target_url; 50 url.mojom.Url target_url;
54 51
55 // The referrer that will be used to load |target_url| (empty if none has 52 // The referrer that will be used to load |target_url| (empty if none has
56 // been specified). 53 // been specified).
57 blink.mojom.Referrer referrer; 54 blink.mojom.Referrer referrer;
58 55
59 // The window features to use for the new view. 56 // The window features to use for the new view.
60 blink.mojom.WindowFeatures features; 57 blink.mojom.WindowFeatures features;
61 }; 58 };
62 59
63 struct CreateNewWindowReply { 60 struct CreateNewWindowReply {
64 // The ID of the view to be created. If the ID is MSG_ROUTING_NONE, then the 61 // The ID of the view to be created. If the ID is MSG_ROUTING_NONE, then the
65 // view couldn't be created. 62 // opener RenderFrame should not create a RenderView in its process.
63 // MSG_ROUTING_NONE does not necessarily indicate failure; it may also occur
64 // in cases where a window was created, but the opener relationship is
65 // severed.
66 int32 route_id; 66 int32 route_id;
67 67
68 // The ID of the main frame hosted in the view. 68 // The ID of the main frame hosted in the view.
69 int32 main_frame_route_id; 69 int32 main_frame_route_id;
70 70
71 // The ID of the widget for the main frame. 71 // The ID of the widget for the main frame.
72 int32 main_frame_widget_route_id; 72 int32 main_frame_widget_route_id;
73 73
74 // Duplicated from CreateNewWindowParams because legacy code. 74 // Duplicated from CreateNewWindowParams because legacy code.
75 int64 cloned_session_storage_namespace_id; 75 int64 cloned_session_storage_namespace_id;
(...skipping 22 matching lines...) Expand all
98 // For now they need to be part of this channel associated interface to 98 // For now they need to be part of this channel associated interface to
99 // prevent running into message ordering issues (CC trying to access a shared 99 // prevent running into message ordering issues (CC trying to access a shared
100 // bitmap before the registration message below made it to the browser). 100 // bitmap before the registration message below made it to the browser).
101 // 101 //
102 // Informs the browser that the child allocated a shared bitmap. 102 // Informs the browser that the child allocated a shared bitmap.
103 AllocatedSharedBitmap(handle<shared_buffer> buffer, gpu.mojom.Mailbox id); 103 AllocatedSharedBitmap(handle<shared_buffer> buffer, gpu.mojom.Mailbox id);
104 104
105 // Informs the browser that the child deleted a shared bitmap. 105 // Informs the browser that the child deleted a shared bitmap.
106 DeletedSharedBitmap(gpu.mojom.Mailbox id); 106 DeletedSharedBitmap(gpu.mojom.Mailbox id);
107 }; 107 };
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/swapped_out_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698