summaryrefslogtreecommitdiffstats
path: root/content/child/npapi/npobject_base.h
blob: 9897139b0957024c7acaa3ff282e32352ac42db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Base interface used by NPChannelBase and implemented by NPObjectProxy and
// NPObjectStub.

#ifndef CONTENT_CHILD_NPAPI_NPOBJECT_BASE_H_
#define CONTENT_CHILD_NPAPI_NPOBJECT_BASE_H_

#include "ipc/ipc_listener.h"
#include "third_party/npapi/bindings/npruntime.h"

struct NPObject;

namespace content {

class NPObjectBase {
 public:
  virtual ~NPObjectBase() {}

  // Returns the underlying NPObject handled by this NPObjectBase instance.
  virtual NPObject* GetUnderlyingNPObject() = 0;

  // Returns the channel listener for this NPObjectBase instance.
  virtual IPC::Listener* GetChannelListener() = 0;
};

}  // namespace content

#endif  // CONTENT_CHILD_NPAPI_NPOBJECT_BASE_H_