Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

npobject_base.h

// Copyright (c) 2006-2010 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 implemented by NPObjectProxy and NPObjectStub

#ifndef CHROME_PLUGIN_NPOBJECT_BASE_H_
#define CHROME_PLUGIN_NPOBJECT_BASE_H_

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

struct NPObject;

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::Channel::Listener* GetChannelListener() = 0;
};

#endif  // CHROME_PLUGIN_NPOBJECT_BASE_H_


Generated by  Doxygen 1.6.0   Back to index