Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: content/public/renderer/browser_plugin/browser_plugin_method_binding.h

Issue 11826005: Browser Plugin: Implement BrowserPluginObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/browser_plugin/browser_plugin_method_binding.h
diff --git a/content/public/renderer/browser_plugin/browser_plugin_method_binding.h b/content/public/renderer/browser_plugin/browser_plugin_method_binding.h
new file mode 100644
index 0000000000000000000000000000000000000000..82c003b961e43cd9806031739f60027cc463cf78
--- /dev/null
+++ b/content/public/renderer/browser_plugin/browser_plugin_method_binding.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 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.
+
+#ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_METHOD_BINDING_H_
+#define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_METHOD_BINDING_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
+
+namespace content {
+
+class BrowserPlugin;
+
+class CONTENT_EXPORT BrowserPluginMethodBinding {
+ public:
+ virtual ~BrowserPluginMethodBinding() {}
+
+ virtual bool MatchesName(const NPIdentifier& name) const = 0;
+
+ virtual uint32 GetArgCount() const = 0;
+
+ virtual bool Invoke(BrowserPlugin* browser_plugin,
+ const NPVariant* args,
+ NPVariant* result) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_METHOD_BINDING_H_

Powered by Google App Engine
This is Rietveld 408576698