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 // Base interface used by NPChannelBase and implemented by NPObjectProxy and | 5 // Base interface used by NPChannelBase and implemented by NPObjectProxy and |
6 // NPObjectStub. | 6 // NPObjectStub. |
7 | 7 |
8 #ifndef CONTENT_COMMON_NPOBJECT_BASE_H_ | 8 #ifndef CONTENT_COMMON_NPOBJECT_BASE_H_ |
9 #define CONTENT_COMMON_NPOBJECT_BASE_H_ | 9 #define CONTENT_COMMON_NPOBJECT_BASE_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_listener.h" |
13 #include "third_party/npapi/bindings/npruntime.h" | 13 #include "third_party/npapi/bindings/npruntime.h" |
14 | 14 |
15 struct NPObject; | 15 struct NPObject; |
16 | 16 |
17 class NPObjectBase { | 17 class NPObjectBase { |
18 public: | 18 public: |
19 virtual ~NPObjectBase() {} | 19 virtual ~NPObjectBase() {} |
20 | 20 |
21 // Returns the underlying NPObject handled by this NPObjectBase instance. | 21 // Returns the underlying NPObject handled by this NPObjectBase instance. |
22 virtual NPObject* GetUnderlyingNPObject() = 0; | 22 virtual NPObject* GetUnderlyingNPObject() = 0; |
23 | 23 |
24 // Returns the channel listener for this NPObjectBase instance. | 24 // Returns the channel listener for this NPObjectBase instance. |
25 virtual IPC::Channel::Listener* GetChannelListener() = 0; | 25 virtual IPC::Listener* GetChannelListener() = 0; |
26 }; | 26 }; |
27 | 27 |
28 #endif // CONTENT_COMMON_NPOBJECT_BASE_H_ | 28 #endif // CONTENT_COMMON_NPOBJECT_BASE_H_ |
OLD | NEW |