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

Unified Diff: trunk/src/content/public/renderer/pepper_plugin_instance.h

Issue 22901012: Revert 218305 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/public/renderer/pepper_plugin_instance.h
===================================================================
--- trunk/src/content/public/renderer/pepper_plugin_instance.h (revision 218542)
+++ trunk/src/content/public/renderer/pepper_plugin_instance.h (working copy)
@@ -56,6 +56,11 @@
// Returns the location of this module.
virtual base::FilePath GetModulePath() = 0;
+ // Returns a reference to a file with the given path.
+ // The returned object will have a refcount of 0 (just like "new").
+ virtual PP_Resource CreateExternalFileReference(
+ const base::FilePath& external_file_path) = 0;
+
// Creates a PPB_ImageData given a Skia image.
virtual PP_Resource CreateImage(gfx::ImageSkia* source_image,
float scale) = 0;
@@ -87,6 +92,7 @@
virtual int32_t Navigate(const ppapi::URLRequestInfoData& request,
const char* target,
bool from_user_action) = 0;
+
};
} // namespace content
« 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