OLD | NEW |
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 #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 #pragma once | |
8 | 7 |
9 #include "content/common/np_channel_base.h" | 8 #include "content/common/np_channel_base.h" |
10 | 9 |
11 class JavaBridgeChannelHost : public NPChannelBase { | 10 class JavaBridgeChannelHost : public NPChannelBase { |
12 public: | 11 public: |
13 static JavaBridgeChannelHost* GetJavaBridgeChannelHost( | 12 static JavaBridgeChannelHost* GetJavaBridgeChannelHost( |
14 int renderer_id, | 13 int renderer_id, |
15 base::MessageLoopProxy* ipc_message_loop); | 14 base::MessageLoopProxy* ipc_message_loop); |
16 | 15 |
17 // 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 |
(...skipping 22 matching lines...) Expand all Loading... |
40 return new JavaBridgeChannelHost(); | 39 return new JavaBridgeChannelHost(); |
41 } | 40 } |
42 | 41 |
43 // Message handlers | 42 // Message handlers |
44 void OnGenerateRouteID(int* route_id); | 43 void OnGenerateRouteID(int* route_id); |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannelHost); | 45 DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannelHost); |
47 }; | 46 }; |
48 | 47 |
49 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ | 48 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ |
OLD | NEW |