Disable ContentSettingBubbleModelTest.RPHAllow which is flaky.
[chromium-blink-merge.git] / content / renderer / java / java_bridge_channel.h
blobc6bf8d38985ad3b9f6878a7d80231fe8286be3a7
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_JAVA_JAVA_BRIDGE_CHANNEL_H_
6 #define CONTENT_RENDERER_JAVA_JAVA_BRIDGE_CHANNEL_H_
8 #include "content/common/np_channel_base.h"
9 #include "ipc/ipc_channel_handle.h"
11 namespace content {
13 class JavaBridgeChannel : public content::NPChannelBase {
14 public:
15 // The return value may be null.
16 static JavaBridgeChannel* GetJavaBridgeChannel(
17 const IPC::ChannelHandle& channel_handle,
18 base::MessageLoopProxy* ipc_message_loop);
20 // NPChannelBase implementation:
21 virtual int GenerateRouteID() OVERRIDE;
23 // NPChannelBase override:
24 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
26 private:
27 JavaBridgeChannel();
28 // This class is ref-counted.
29 virtual ~JavaBridgeChannel();
31 static NPChannelBase* ClassFactory() { return new JavaBridgeChannel(); }
33 DISALLOW_COPY_AND_ASSIGN(JavaBridgeChannel);
36 } // namespace content
38 #endif // CONTENT_RENDERER_JAVA_JAVA_BRIDGE_CHANNEL_H_