Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / content / child / npapi / npobject_base.h
blob9897139b0957024c7acaa3ff282e32352ac42db6
1 // Copyright 2013 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.
4 //
5 // Base interface used by NPChannelBase and implemented by NPObjectProxy and
6 // NPObjectStub.
8 #ifndef CONTENT_CHILD_NPAPI_NPOBJECT_BASE_H_
9 #define CONTENT_CHILD_NPAPI_NPOBJECT_BASE_H_
11 #include "ipc/ipc_listener.h"
12 #include "third_party/npapi/bindings/npruntime.h"
14 struct NPObject;
16 namespace content {
18 class NPObjectBase {
19 public:
20 virtual ~NPObjectBase() {}
22 // Returns the underlying NPObject handled by this NPObjectBase instance.
23 virtual NPObject* GetUnderlyingNPObject() = 0;
25 // Returns the channel listener for this NPObjectBase instance.
26 virtual IPC::Listener* GetChannelListener() = 0;
29 } // namespace content
31 #endif // CONTENT_CHILD_NPAPI_NPOBJECT_BASE_H_