OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_METHOD_BINDING_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_METHOD_BINDING_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "content/common/content_export.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class BrowserPlugin; |
| 16 |
| 17 class CONTENT_EXPORT BrowserPluginMethodBinding { |
| 18 public: |
| 19 virtual ~BrowserPluginMethodBinding() {} |
| 20 |
| 21 virtual bool MatchesName(const NPIdentifier& name) const = 0; |
| 22 |
| 23 virtual uint32 GetArgCount() const = 0; |
| 24 |
| 25 virtual bool Invoke(BrowserPlugin* browser_plugin, |
| 26 const NPVariant* args, |
| 27 NPVariant* result) = 0; |
| 28 }; |
| 29 |
| 30 } // namespace content |
| 31 |
| 32 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_METHOD_BINDING_
H_ |
OLD | NEW |