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

Side by Side Diff: content/browser/renderer_host/java/java_bridge_channel_host.h

Issue 11235068: Move the remaning files in content\common to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_
7 7
8 #include "content/common/np_channel_base.h" 8 #include "content/common/np_channel_base.h"
9 9
10 class JavaBridgeChannelHost : public NPChannelBase { 10 class JavaBridgeChannelHost : public content::NPChannelBase {
11 public: 11 public:
12 static JavaBridgeChannelHost* GetJavaBridgeChannelHost( 12 static JavaBridgeChannelHost* GetJavaBridgeChannelHost(
13 int renderer_id, 13 int renderer_id,
14 base::MessageLoopProxy* ipc_message_loop); 14 base::MessageLoopProxy* ipc_message_loop);
15 15
16 // A threadsafe function to generate a unique route ID. Used by the 16 // A threadsafe function to generate a unique route ID. Used by the
17 // JavaBridgeDispatcherHost on the UI thread and this class on the Java 17 // JavaBridgeDispatcherHost on the UI thread and this class on the Java
18 // Bridge's background thread. 18 // Bridge's background thread.
19 static int ThreadsafeGenerateRouteID(); 19 static int ThreadsafeGenerateRouteID();
20 20
(...skipping 18 matching lines...) Expand all
39 return new JavaBridgeChannelHost(); 39 return new JavaBridgeChannelHost();
40 } 40 }
41 41
42 // Message handlers 42 // Message handlers
43 void OnGenerateRouteID(int* route_id); 43 void OnGenerateRouteID(int* route_id);
44 44
45 DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannelHost); 45 DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannelHost);
46 }; 46 };
47 47
48 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ 48 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | content/browser/renderer_host/java/java_bridge_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698