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_BRIDGE_CHANNEL_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_BRIDGE_CHANNEL_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/common/np_channel_base.h" | 9 #include "content/common/np_channel_base.h" |
10 | 10 |
11 class JavaBridgeChannelHost : public NPChannelBase { | 11 class JavaBridgeChannelHost : public NPChannelBase { |
12 public: | 12 public: |
13 static JavaBridgeChannelHost* GetJavaBridgeChannelHost( | 13 static JavaBridgeChannelHost* GetJavaBridgeChannelHost( |
14 int renderer_id, base::MessageLoopProxy*); | 14 int renderer_id, base::MessageLoopProxy*); |
15 | 15 |
16 // NPChannelBase implementation: | 16 // NPChannelBase implementation: |
(...skipping 10 matching lines...) Expand all Loading... |
27 friend class base::RefCountedThreadSafe<JavaBridgeChannelHost>; | 27 friend class base::RefCountedThreadSafe<JavaBridgeChannelHost>; |
28 virtual ~JavaBridgeChannelHost() {} | 28 virtual ~JavaBridgeChannelHost() {} |
29 | 29 |
30 static NPChannelBase* ClassFactory() { | 30 static NPChannelBase* ClassFactory() { |
31 return new JavaBridgeChannelHost(); | 31 return new JavaBridgeChannelHost(); |
32 } | 32 } |
33 | 33 |
34 DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannelHost); | 34 DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannelHost); |
35 }; | 35 }; |
36 | 36 |
37 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_BRIDGE_CHANNEL_HOST_H_ | 37 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_CHANNEL_HOST_H_ |
OLD | NEW |