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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 years, 10 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
« no previous file with comments | « content/renderer/android/app_web_message_port_client.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 9675f6cba5a57a9a0aa996656ae24ebbbae40741..cbd04334da5e970af9a3d251c9eba7e0d3d1de0d 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -234,7 +234,6 @@
#if defined(OS_ANDROID)
#include <cpu-features.h>
-#include "content/renderer/android/app_web_message_port_client.h"
#include "content/renderer/java/gin_java_bridge_dispatcher.h"
#include "content/renderer/media/android/media_player_renderer_client_factory.h"
#include "content/renderer/media/android/renderer_media_player_manager.h"
@@ -1238,10 +1237,6 @@ void RenderFrameImpl::Initialize() {
// embedder can call GetWebFrame on any RenderFrame.
GetContentClient()->renderer()->RenderFrameCreated(this);
-#if defined(OS_ANDROID)
- new AppWebMessagePortClient(this);
-#endif
-
RenderThreadImpl* render_thread = RenderThreadImpl::current();
// render_thread may be NULL in tests.
InputHandlerManager* input_handler_manager =
@@ -2206,9 +2201,7 @@ void RenderFrameImpl::OnPostMessageEvent(
// If the message contained MessagePorts, create the corresponding endpoints.
blink::WebMessagePortChannelArray channels =
- WebMessagePortChannelImpl::CreatePorts(
- params.message_ports, params.new_routing_ids,
- base::ThreadTaskRunnerHandle::Get().get());
+ WebMessagePortChannelImpl::CreateFromMessagePorts(params.message_ports);
WebSerializedScriptValue serialized_script_value;
if (params.is_data_raw_string) {
@@ -2237,7 +2230,9 @@ void RenderFrameImpl::OnPostMessageEvent(
WebDOMMessageEvent msg_event(serialized_script_value,
WebString::fromUTF16(params.source_origin),
- source_frame, frame_->document(), channels);
+ source_frame,
+ frame_->document(),
+ std::move(channels));
frame_->dispatchMessageEventWithOriginCheck(target_origin, msg_event);
}
« no previous file with comments | « content/renderer/android/app_web_message_port_client.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698