summaryrefslogtreecommitdiffstats
path: root/content/common/npobject_base.h
diff options
context:
space:
mode:
authorsteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 00:40:50 +0000
committersteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 00:40:50 +0000
commit099587b7a8bf441af62251275197973203e2f11a (patch)
treea8e0711b152925dbc2102b692d6ceec19e881fa3 /content/common/npobject_base.h
parent79311e89bc4fbd952d5ce872011f8360bfa5e6e6 (diff)
downloadchromium_src-099587b7a8bf441af62251275197973203e2f11a.zip
chromium_src-099587b7a8bf441af62251275197973203e2f11a.tar.gz
chromium_src-099587b7a8bf441af62251275197973203e2f11a.tar.bz2
Move NPObjectBase and PluginChannelBase from content/plugin to content/common
Also rename PluginChannelBase to NPChannelBase, fix variable naming to be agnostic of plugins, and fix a comment in NPChannelBase. This change is refactoring only and introduces no change in behaviour. BUG=96703 Review URL: http://codereview.chromium.org/7891003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/npobject_base.h')
-rw-r--r--content/common/npobject_base.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/content/common/npobject_base.h b/content/common/npobject_base.h
new file mode 100644
index 0000000..e8dd6a9
--- /dev/null
+++ b/content/common/npobject_base.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 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_COMMON_NPOBJECT_BASE_H_
+#define CONTENT_COMMON_NPOBJECT_BASE_H_
+#pragma once
+
+#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 // CONTENT_COMMON_NPOBJECT_BASE_H_