OLD | NEW |
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 // 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_CHILD_NPOBJECT_BASE_H_ |
9 #define CONTENT_COMMON_NPOBJECT_BASE_H_ | 9 #define CONTENT_COMMON_CHILD_NPOBJECT_BASE_H_ |
10 | 10 |
11 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
12 #include "third_party/npapi/bindings/npruntime.h" | 12 #include "third_party/npapi/bindings/npruntime.h" |
13 | 13 |
14 struct NPObject; | 14 struct NPObject; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class NPObjectBase { | 18 class NPObjectBase { |
19 public: | 19 public: |
20 virtual ~NPObjectBase() {} | 20 virtual ~NPObjectBase() {} |
21 | 21 |
22 // Returns the underlying NPObject handled by this NPObjectBase instance. | 22 // Returns the underlying NPObject handled by this NPObjectBase instance. |
23 virtual NPObject* GetUnderlyingNPObject() = 0; | 23 virtual NPObject* GetUnderlyingNPObject() = 0; |
24 | 24 |
25 // Returns the channel listener for this NPObjectBase instance. | 25 // Returns the channel listener for this NPObjectBase instance. |
26 virtual IPC::Listener* GetChannelListener() = 0; | 26 virtual IPC::Listener* GetChannelListener() = 0; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace content | 29 } // namespace content |
30 | 30 |
31 #endif // CONTENT_COMMON_NPOBJECT_BASE_H_ | 31 #endif // CONTENT_COMMON_CHILD_NPOBJECT_BASE_H_ |
OLD | NEW |