Index: content/public/renderer/browser_plugin/browser_plugin_property_binding.h |
diff --git a/content/public/renderer/browser_plugin/browser_plugin_property_binding.h b/content/public/renderer/browser_plugin/browser_plugin_property_binding.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3d8b9d57aa4216c4a70b58fe3ef08e36203d42d0 |
--- /dev/null |
+++ b/content/public/renderer/browser_plugin/browser_plugin_property_binding.h |
@@ -0,0 +1,37 @@ |
+// 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_PROPERTY_BINDING_H_ |
+#define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_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 BrowserPluginPropertyBinding { |
+ public: |
+ virtual ~BrowserPluginPropertyBinding() {} |
+ |
+ virtual const std::string& GetName() const = 0; |
+ |
+ virtual bool MatchesName(NPIdentifier name) const = 0; |
sadrul
2013/01/09 15:21:54
Do you need both GetName and MatchesName? Perhaps
Fady Samuel
2013/01/09 17:41:24
Done.
|
+ |
+ virtual bool GetProperty(BrowserPlugin* browser_plugin, |
+ NPVariant* result) = 0; |
+ |
+ virtual bool SetProperty(BrowserPlugin* browser_plugin, |
+ NPObject* np_obj, |
+ const NPVariant* variant) = 0; |
+ |
+ virtual std::string GetDOMAttributeValue(BrowserPlugin* browser_plugin) = 0; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDING_H_ |