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

Side by Side Diff: content/browser/renderer_host/java_bridge_dispatcher_host.cc

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/renderer_host/java_bridge_dispatcher_host.h" 5 #include "content/browser/renderer_host/java_bridge_dispatcher_host.h"
6 6
7 #include "content/browser/browser_thread.h" 7 #include "content/browser/renderer_host/browser_render_process_host.h"
8 #include "content/browser/renderer_host/java_bridge_channel_host.h" 8 #include "content/browser/renderer_host/java_bridge_channel_host.h"
9 #include "content/browser/renderer_host/browser_render_process_host.h"
10 #include "content/browser/renderer_host/render_view_host.h" 9 #include "content/browser/renderer_host/render_view_host.h"
11 #include "content/common/child_process.h" 10 #include "content/common/child_process.h"
12 #include "content/common/java_bridge_messages.h" 11 #include "content/common/java_bridge_messages.h"
13 #include "content/common/npobject_stub.h" 12 #include "content/common/npobject_stub.h"
14 #include "content/common/npobject_util.h" // For CreateNPVariantParam() 13 #include "content/common/npobject_util.h" // For CreateNPVariantParam()
14 #include "content/public/browser/browser_thread.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
16 16
17 JavaBridgeDispatcherHost::JavaBridgeDispatcherHost( 17 JavaBridgeDispatcherHost::JavaBridgeDispatcherHost(
18 RenderViewHost* render_view_host) 18 RenderViewHost* render_view_host)
19 : render_view_host_(render_view_host) { 19 : render_view_host_(render_view_host) {
20 DCHECK(render_view_host_); 20 DCHECK(render_view_host_);
21 } 21 }
22 22
23 JavaBridgeDispatcherHost::~JavaBridgeDispatcherHost() { 23 JavaBridgeDispatcherHost::~JavaBridgeDispatcherHost() {
24 } 24 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // The channel creates the channel handle based on the renderer ID we passed 81 // The channel creates the channel handle based on the renderer ID we passed
82 // to GetJavaBridgeChannelHost() and, on POSIX, the file descriptor used by 82 // to GetJavaBridgeChannelHost() and, on POSIX, the file descriptor used by
83 // the underlying channel. 83 // the underlying channel.
84 IPC::ChannelHandle channel_handle = channel_->channel_handle(); 84 IPC::ChannelHandle channel_handle = channel_->channel_handle();
85 85
86 bool sent = render_view_host_->Send(new JavaBridgeMsg_Init( 86 bool sent = render_view_host_->Send(new JavaBridgeMsg_Init(
87 render_view_host_->routing_id(), channel_handle)); 87 render_view_host_->routing_id(), channel_handle));
88 DCHECK(sent); 88 DCHECK(sent);
89 } 89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698