Create EmbeddedWorkerInstanceClient from the Render interface
This change is to create EmbeddedWorkerInstanceClient from the Renderer
interface. It used to be created from the InterfaceRegistry, but we didn't have
guarantee of IPC message orderings between StartWorker and messages onto the
Renderer interface. StartWorker needs to be run after initialization of the
renderer (crrev.com/c/1031693 will introduce SetUserAgent message), so this CL
is to put the very first IPC for the service worker, which is establishing the
Mojo connection, on the Renderer interface.
Bug: 818450
Change-Id: I5a5d64fa9aef73ca602633b2b3664110d0a761c9
Reviewed-on: https://chromium-review.googlesource.com/1053042
Commit-Queue: Makoto Shimazu <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#557804}
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 0430fdd8..6e8ecc5 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -562,6 +562,8 @@
int32_t parent_routing_id,
const FrameReplicationState& replicated_state,
const base::UnguessableToken& devtools_frame_token) override;
+ void SetUpEmbeddedWorkerChannelForServiceWorker(
+ mojom::EmbeddedWorkerInstanceClientRequest client_request) override;
void OnNetworkConnectionChanged(
net::NetworkChangeNotifier::ConnectionType type,
double max_bandwidth_mbps) override;
@@ -650,6 +652,9 @@
// Used on the render thread.
std::unique_ptr<VideoCaptureImplManager> vc_manager_;
+ // The time Blink was initialized. Used for UMA.
+ base::TimeTicks blink_initialized_time_;
+
// The count of RenderWidgets running through this thread.
int widget_count_;