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

Side by Side Diff: content/renderer/java/java_bridge_channel.cc

Issue 8525016: Move Java Bridge files to new java/ subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 | Annotate | Revision Log
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/renderer/java_bridge_channel.h" 5 #include "content/renderer/java/java_bridge_channel.h"
6 6
7 #include "content/common/child_process.h" 7 #include "content/common/child_process.h"
8 8
9 JavaBridgeChannel* JavaBridgeChannel::GetJavaBridgeChannel( 9 JavaBridgeChannel* JavaBridgeChannel::GetJavaBridgeChannel(
10 const IPC::ChannelHandle& channel_handle, 10 const IPC::ChannelHandle& channel_handle,
11 base::MessageLoopProxy* ipc_message_loop) { 11 base::MessageLoopProxy* ipc_message_loop) {
12 return static_cast<JavaBridgeChannel*>(NPChannelBase::GetChannel( 12 return static_cast<JavaBridgeChannel*>(NPChannelBase::GetChannel(
13 channel_handle, 13 channel_handle,
14 IPC::Channel::MODE_CLIENT, 14 IPC::Channel::MODE_CLIENT,
15 ClassFactory, 15 ClassFactory,
16 ipc_message_loop, 16 ipc_message_loop,
17 true, 17 true,
18 ChildProcess::current()->GetShutDownEvent())); 18 ChildProcess::current()->GetShutDownEvent()));
19 } 19 }
20 20
21 int JavaBridgeChannel::GenerateRouteID() { 21 int JavaBridgeChannel::GenerateRouteID() {
22 NOTREACHED() << "Java Bridge only creates object stubs in the browser."; 22 NOTREACHED() << "Java Bridge only creates object stubs in the browser.";
23 return -1; 23 return -1;
24 } 24 }
25 25
26 bool JavaBridgeChannel::OnMessageReceived(const IPC::Message& msg) { 26 bool JavaBridgeChannel::OnMessageReceived(const IPC::Message& msg) {
27 NOTREACHED() << "Java Bridge only sends messages from renderer to browser."; 27 NOTREACHED() << "Java Bridge only sends messages from renderer to browser.";
28 return false; 28 return false;
29 } 29 }
OLDNEW
« no previous file with comments | « content/renderer/java/java_bridge_channel.h ('k') | content/renderer/java/java_bridge_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698