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

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

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: associated with IPC channel Created 3 years, 8 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
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 "cc/ipc/shared_bitmap_manager.mojom"; 7 import "cc/ipc/shared_bitmap_manager.mojom";
8 import "content/common/native_types.mojom"; 8 import "content/common/native_types.mojom";
9 import "content/public/common/window_container_type.mojom"; 9 import "content/public/common/window_container_type.mojom";
10 import "gpu/ipc/common/mailbox.mojom"; 10 import "gpu/ipc/common/mailbox.mojom";
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int32 main_frame_widget_route_id; 73 int32 main_frame_widget_route_id;
74 74
75 // Duplicated from CreateNewWindowParams because legacy code. 75 // Duplicated from CreateNewWindowParams because legacy code.
76 int64 cloned_session_storage_namespace_id; 76 int64 cloned_session_storage_namespace_id;
77 }; 77 };
78 78
79 interface RenderMessageFilter { 79 interface RenderMessageFilter {
80 // Synchronously generates a new routing ID for the caller. 80 // Synchronously generates a new routing ID for the caller.
81 [Sync] GenerateRoutingID() => (int32 routing_id); 81 [Sync] GenerateRoutingID() => (int32 routing_id);
82 82
83 // Sent by the renderer when it is creating a new window. The browser creates
84 // a tab for it. If |reply.route_id| is MSG_ROUTING_NONE, the view couldn't
85 // be created.
86 [Sync] CreateNewWindow(CreateNewWindowParams params)
87 => (CreateNewWindowReply reply);
88
89 // Similar to CreateWindow, except used for sub-widgets, like <select> 83 // Similar to CreateWindow, except used for sub-widgets, like <select>
90 // dropdowns. 84 // dropdowns.
91 [Sync] CreateNewWidget(int32 opener_id, content.mojom.WebPopupType popup_type) 85 [Sync] CreateNewWidget(int32 opener_id, content.mojom.WebPopupType popup_type)
92 => (int32 route_id); 86 => (int32 route_id);
93 87
94 // Similar to CreateWidget except the widget is a full screen window. 88 // Similar to CreateWidget except the widget is a full screen window.
95 [Sync] CreateFullscreenWidget(int32 opener_id) 89 [Sync] CreateFullscreenWidget(int32 opener_id)
96 => (int32 route_id); 90 => (int32 route_id);
97 91
98 GetSharedBitmapManager(associated cc.mojom.SharedBitmapManager& bitmap_manager ); 92 GetSharedBitmapManager(associated cc.mojom.SharedBitmapManager& bitmap_manager );
99 }; 93 };
94
95 // Similar to RenderMessageFilter, but all IPCs are serviced on the UI thread.
96 interface RenderMessageFilterUI {
ncarter (slow) 2017/04/17 19:56:38 Did you consider just routing this to the opener R
Charlie Harrison 2017/04/17 20:10:52 Yep, discussed this with dcheng@ and we considered
ncarter (slow) 2017/04/17 20:44:26 I think it's preferable to use the opener here, si
dcheng 2017/04/17 20:50:40 I did some more thinking, and I think routing it v
Charlie Harrison 2017/04/18 20:38:52 Alright the current version attempts to route thro
97 // Sent by the renderer when it is creating a new window. The browser creates
98 // a tab for it. If |reply.route_id| is MSG_ROUTING_NONE, the view couldn't
99 // be created.
100 [Sync] CreateNewWindow(CreateNewWindowParams params)
101 => (CreateNewWindowReply reply);
102 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698