| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 } | 342 } |
| 343 | 343 |
| 344 ContentDecryptorDelegate* GetContentDecryptorDelegate(); | 344 ContentDecryptorDelegate* GetContentDecryptorDelegate(); |
| 345 | 345 |
| 346 // PluginInstance implementation | 346 // PluginInstance implementation |
| 347 virtual RenderView* GetRenderView() OVERRIDE; | 347 virtual RenderView* GetRenderView() OVERRIDE; |
| 348 virtual WebKit::WebPluginContainer* GetContainer() OVERRIDE; | 348 virtual WebKit::WebPluginContainer* GetContainer() OVERRIDE; |
| 349 virtual ppapi::VarTracker* GetVarTracker() OVERRIDE; | 349 virtual ppapi::VarTracker* GetVarTracker() OVERRIDE; |
| 350 virtual const GURL& GetPluginURL() OVERRIDE; | 350 virtual const GURL& GetPluginURL() OVERRIDE; |
| 351 virtual base::FilePath GetModulePath() OVERRIDE; | 351 virtual base::FilePath GetModulePath() OVERRIDE; |
| 352 virtual PP_Resource CreateExternalFileReference( | |
| 353 const base::FilePath& external_file_path) OVERRIDE; | |
| 354 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, | 352 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, |
| 355 float scale) OVERRIDE; | 353 float scale) OVERRIDE; |
| 356 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy( | 354 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy( |
| 357 const base::FilePath& file_path, | 355 const base::FilePath& file_path, |
| 358 ppapi::PpapiPermissions permissions, | 356 ppapi::PpapiPermissions permissions, |
| 359 const IPC::ChannelHandle& channel_handle, | 357 const IPC::ChannelHandle& channel_handle, |
| 360 base::ProcessId plugin_pid, | 358 base::ProcessId plugin_pid, |
| 361 int plugin_child_id) OVERRIDE; | 359 int plugin_child_id) OVERRIDE; |
| 362 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; | 360 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; |
| 363 virtual bool IsFullPagePlugin() OVERRIDE; | 361 virtual bool IsFullPagePlugin() OVERRIDE; |
| 364 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) OVERRIDE; | 362 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) OVERRIDE; |
| 365 virtual bool IsRectTopmost(const gfx::Rect& rect) OVERRIDE; | 363 virtual bool IsRectTopmost(const gfx::Rect& rect) OVERRIDE; |
| 366 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request, | 364 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request, |
| 367 const char* target, | 365 const char* target, |
| 368 bool from_user_action) OVERRIDE; | 366 bool from_user_action) OVERRIDE; |
| 367 virtual int MakePendingFileRefRendererHost( |
| 368 const base::FilePath& path) OVERRIDE; |
| 369 | 369 |
| 370 // PPB_Instance_API implementation. | 370 // PPB_Instance_API implementation. |
| 371 virtual PP_Bool BindGraphics(PP_Instance instance, | 371 virtual PP_Bool BindGraphics(PP_Instance instance, |
| 372 PP_Resource device) OVERRIDE; | 372 PP_Resource device) OVERRIDE; |
| 373 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; | 373 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; |
| 374 virtual const ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE; | 374 virtual const ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE; |
| 375 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; | 375 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; |
| 376 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; | 376 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; |
| 377 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; | 377 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; |
| 378 virtual PP_Var ExecuteScript(PP_Instance instance, | 378 virtual PP_Var ExecuteScript(PP_Instance instance, |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 | 863 |
| 864 scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_; | 864 scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_; |
| 865 | 865 |
| 866 friend class PpapiPluginInstanceTest; | 866 friend class PpapiPluginInstanceTest; |
| 867 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 867 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 868 }; | 868 }; |
| 869 | 869 |
| 870 } // namespace content | 870 } // namespace content |
| 871 | 871 |
| 872 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 872 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |