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

Side by Side Diff: content/public/renderer/browser_plugin/browser_plugin_property_binding.h

Issue 11826005: Browser Plugin: Implement BrowserPluginObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT 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_PROPERTY_BINDING_H _
6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_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 // A BrowserPluginPropertyBinding is an interface that can be implemented to
18 // define a property that can be tied to a BrowserPlugin object. This property
19 // can be added to a particular instance of BrowserPlugin through
20 // BrowserPlugin::AddPropertyBinding.
21 class CONTENT_EXPORT BrowserPluginPropertyBinding {
22 public:
23 virtual ~BrowserPluginPropertyBinding() {}
24
25 // Returns the name of the property.
26 virtual const std::string& GetName() const = 0;
27
28 // Returns whether a getter for the property exits.
29 // If it does, the value will be stored in |result|.
30 virtual bool GetProperty(NPVariant* result) = 0;
31
32 // Returns whether a setter for the property exists. The value assigned to the
33 // property is stored in |value|.
34 virtual bool SetProperty(NPObject* np_obj, const NPVariant* value) = 0;
35
36 // Called when there is an attempt to remove the property.
37 virtual void RemoveProperty(NPObject* np_obj) = 0;
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_PROPERTY_BINDIN G_H_
OLDNEW
« no previous file with comments | « content/public/renderer/browser_plugin/browser_plugin_observer.cc ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698