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

Side by Side Diff: trunk/src/content/public/renderer/pepper_plugin_instance.h

Issue 23647008: Revert 221284 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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) 2013 The Chromium Authors. All rights reserved. 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 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_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_
6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ 6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 virtual WebKit::WebPluginContainer* GetContainer() = 0; 50 virtual WebKit::WebPluginContainer* GetContainer() = 0;
51 51
52 virtual ppapi::VarTracker* GetVarTracker() = 0; 52 virtual ppapi::VarTracker* GetVarTracker() = 0;
53 53
54 virtual const GURL& GetPluginURL() = 0; 54 virtual const GURL& GetPluginURL() = 0;
55 55
56 // Returns the location of this module. 56 // Returns the location of this module.
57 virtual base::FilePath GetModulePath() = 0; 57 virtual base::FilePath GetModulePath() = 0;
58 58
59 // Returns a reference to a file with the given path.
60 // The returned object will have a refcount of 0 (just like "new").
61 virtual PP_Resource CreateExternalFileReference(
62 const base::FilePath& external_file_path) = 0;
63
59 // Creates a PPB_ImageData given a Skia image. 64 // Creates a PPB_ImageData given a Skia image.
60 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, 65 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image,
61 float scale) = 0; 66 float scale) = 0;
62 67
63 // Switches this instance with one that uses the out of process IPC proxy. 68 // Switches this instance with one that uses the out of process IPC proxy.
64 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy( 69 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy(
65 const base::FilePath& file_path, 70 const base::FilePath& file_path,
66 ppapi::PpapiPermissions permissions, 71 ppapi::PpapiPermissions permissions,
67 const IPC::ChannelHandle& channel_handle, 72 const IPC::ChannelHandle& channel_handle,
68 base::ProcessId plugin_pid, 73 base::ProcessId plugin_pid,
(...skipping 12 matching lines...) Expand all
81 // true, it will delay it. When called from the plugin, delay_report should 86 // true, it will delay it. When called from the plugin, delay_report should
82 // be true to avoid re-entrancy. 87 // be true to avoid re-entrancy.
83 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) = 0; 88 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) = 0;
84 89
85 virtual bool IsRectTopmost(const gfx::Rect& rect) = 0; 90 virtual bool IsRectTopmost(const gfx::Rect& rect) = 0;
86 91
87 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request, 92 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request,
88 const char* target, 93 const char* target,
89 bool from_user_action) = 0; 94 bool from_user_action) = 0;
90 95
91 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure.
92 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0;
93 }; 96 };
94 97
95 } // namespace content 98 } // namespace content
96 99
97 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ 100 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « trunk/src/content/content_renderer.gypi ('k') | trunk/src/content/public/renderer/renderer_ppapi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698