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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 21966004: Pepper: Move FileRef to the "new" resource proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fixes for dmichael Created 7 years, 3 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
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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 } 340 }
341 341
342 ContentDecryptorDelegate* GetContentDecryptorDelegate(); 342 ContentDecryptorDelegate* GetContentDecryptorDelegate();
343 343
344 // PluginInstance implementation 344 // PluginInstance implementation
345 virtual RenderView* GetRenderView() OVERRIDE; 345 virtual RenderView* GetRenderView() OVERRIDE;
346 virtual WebKit::WebPluginContainer* GetContainer() OVERRIDE; 346 virtual WebKit::WebPluginContainer* GetContainer() OVERRIDE;
347 virtual ppapi::VarTracker* GetVarTracker() OVERRIDE; 347 virtual ppapi::VarTracker* GetVarTracker() OVERRIDE;
348 virtual const GURL& GetPluginURL() OVERRIDE; 348 virtual const GURL& GetPluginURL() OVERRIDE;
349 virtual base::FilePath GetModulePath() OVERRIDE; 349 virtual base::FilePath GetModulePath() OVERRIDE;
350 virtual PP_Resource CreateExternalFileReference(
351 const base::FilePath& external_file_path) OVERRIDE;
352 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, 350 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image,
353 float scale) OVERRIDE; 351 float scale) OVERRIDE;
354 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy( 352 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy(
355 const base::FilePath& file_path, 353 const base::FilePath& file_path,
356 ppapi::PpapiPermissions permissions, 354 ppapi::PpapiPermissions permissions,
357 const IPC::ChannelHandle& channel_handle, 355 const IPC::ChannelHandle& channel_handle,
358 base::ProcessId plugin_pid, 356 base::ProcessId plugin_pid,
359 int plugin_child_id) OVERRIDE; 357 int plugin_child_id) OVERRIDE;
360 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; 358 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE;
361 virtual bool IsFullPagePlugin() OVERRIDE; 359 virtual bool IsFullPagePlugin() OVERRIDE;
362 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) OVERRIDE; 360 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) OVERRIDE;
363 virtual bool IsRectTopmost(const gfx::Rect& rect) OVERRIDE; 361 virtual bool IsRectTopmost(const gfx::Rect& rect) OVERRIDE;
364 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request, 362 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request,
365 const char* target, 363 const char* target,
366 bool from_user_action) OVERRIDE; 364 bool from_user_action) OVERRIDE;
365 virtual int MakePendingFileRefRendererHost(
366 const base::FilePath& path) OVERRIDE;
367 367
368 // PPB_Instance_API implementation. 368 // PPB_Instance_API implementation.
369 virtual PP_Bool BindGraphics(PP_Instance instance, 369 virtual PP_Bool BindGraphics(PP_Instance instance,
370 PP_Resource device) OVERRIDE; 370 PP_Resource device) OVERRIDE;
371 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; 371 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE;
372 virtual const ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE; 372 virtual const ppapi::ViewData* GetViewData(PP_Instance instance) OVERRIDE;
373 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; 373 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE;
374 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; 374 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE;
375 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; 375 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE;
376 virtual PP_Var ExecuteScript(PP_Instance instance, 376 virtual PP_Var ExecuteScript(PP_Instance instance,
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 849
850 scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_; 850 scoped_ptr<MouseLockDispatcher::LockTarget> lock_target_;
851 851
852 friend class PpapiPluginInstanceTest; 852 friend class PpapiPluginInstanceTest;
853 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 853 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
854 }; 854 };
855 855
856 } // namespace content 856 } // namespace content
857 857
858 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 858 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698