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

Side by Side 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: Clean up bindings API Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 {
Charlie Reis 2013/02/28 02:12:03 Class-level documentation.
Fady Samuel 2013/02/28 22:56:21 Done.
18 public:
19 virtual ~BrowserPluginMethodBinding() {}
20
21 // Returns the name of the method.
22 virtual const std::string& GetName() const = 0;
23
24 // Returns the number of arguments expected by the method.
25 virtual uint32 GetArgCount() const = 0;
26
27 // Executes the method on |browser_plugin| with the provided |args|.
28 // The return value is stored in |result|.
29 virtual bool Invoke(const NPVariant* args, NPVariant* result) = 0;
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_METHOD_BINDING_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698