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

Unified Diff: content/renderer/render_thread_impl.h

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: MakeShared goodness 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 4ee6d4f7fd0e4ea1051de524511a318b56ae359d..5438b78d1e5730b559b099cbd4377caec97b82de 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -480,7 +480,7 @@ class CONTENT_EXPORT RenderThreadImpl
void RegisterPendingFrameCreate(int routing_id,
mojom::FrameRequest frame,
- mojom::FrameHostPtr host);
+ mojom::FrameHostInterfaceBrokerPtr host);
mojom::StoragePartitionService* GetStoragePartitionService();
@@ -743,14 +743,16 @@ class CONTENT_EXPORT RenderThreadImpl
class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> {
public:
- PendingFrameCreate(int routing_id,
- mojom::FrameRequest frame_request,
- mojom::FrameHostPtr frame_host);
+ PendingFrameCreate(
+ int routing_id,
+ mojom::FrameRequest frame_request,
+ mojom::FrameHostInterfaceBrokerPtr frame_host_interface_broker);
mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); }
- mojom::FrameHostPtr TakeFrameHost() {
- frame_host_.set_connection_error_handler(base::Closure());
- return std::move(frame_host_);
+ mojom::FrameHostInterfaceBrokerPtr TakeInterfaceBroker() {
+ frame_host_interface_broker_.set_connection_error_handler(
+ base::Closure());
+ return std::move(frame_host_interface_broker_);
}
private:
@@ -763,7 +765,7 @@ class CONTENT_EXPORT RenderThreadImpl
int routing_id_;
mojom::FrameRequest frame_request_;
- mojom::FrameHostPtr frame_host_;
+ mojom::FrameHostInterfaceBrokerPtr frame_host_interface_broker_;
};
using PendingFrameCreateMap =

Powered by Google App Engine
This is Rietveld 408576698