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

Unified Diff: ppapi/proxy/flash_resource.h

Issue 11413200: Refactored PPB_Flash GetSettings to the new pepper resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | ppapi/proxy/flash_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/flash_resource.h
diff --git a/ppapi/proxy/flash_resource.h b/ppapi/proxy/flash_resource.h
index 3bd0734d31a3540d512f7faa265c4141f556236d..1fa8697ae461d94ff41d050f9670863a0f8a547e 100644
--- a/ppapi/proxy/flash_resource.h
+++ b/ppapi/proxy/flash_resource.h
@@ -16,11 +16,15 @@
namespace ppapi {
namespace proxy {
+class PluginDispatcher;
+
class PPAPI_PROXY_EXPORT FlashResource
: public PluginResource,
public NON_EXPORTED_BASE(thunk::PPB_Flash_Functions_API) {
public:
- FlashResource(Connection connection, PP_Instance instance);
+ FlashResource(Connection connection,
+ PP_Instance instance,
+ PluginDispatcher* plugin_dispatcher);
virtual ~FlashResource();
// Resource override.
@@ -35,8 +39,13 @@ class PPAPI_PROXY_EXPORT FlashResource
PP_Var value) OVERRIDE;
virtual double GetLocalTimeZoneOffset(PP_Instance instance,
PP_Time t) OVERRIDE;
+ virtual PP_Var GetSetting(PP_Instance instance,
+ PP_FlashSetting setting) OVERRIDE;
private:
+ // Non-owning pointer to the PluginDispatcher that owns this object.
+ PluginDispatcher* plugin_dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(FlashResource);
};
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | ppapi/proxy/flash_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698