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

Unified Diff: webkit/glue/plugins/pepper_resource_tracker.h

Issue 2822031: File API boilerplate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « webkit/glue/plugins/pepper_resource.h ('k') | webkit/glue/plugins/pepper_resource_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_resource_tracker.h
===================================================================
--- webkit/glue/plugins/pepper_resource_tracker.h (revision 50938)
+++ webkit/glue/plugins/pepper_resource_tracker.h (working copy)
@@ -18,6 +18,10 @@
class Buffer;
class DeviceContext2D;
+class DirectoryReader;
+class FileChooser;
+class FileIO;
+class FileRef;
class ImageData;
class Resource;
class URLLoader;
@@ -48,12 +52,16 @@
// Helpers for converting resources to a specific type. Returns NULL if the
// resource is invalid or is a different type.
+ scoped_refptr<Buffer> GetAsBuffer(PP_Resource res) const;
scoped_refptr<DeviceContext2D> GetAsDeviceContext2D(PP_Resource res) const;
+ scoped_refptr<DirectoryReader> GetAsDirectoryReader(PP_Resource res) const;
+ scoped_refptr<FileChooser> GetAsFileChooser(PP_Resource res) const;
+ scoped_refptr<FileIO> GetAsFileIO(PP_Resource res) const;
+ scoped_refptr<FileRef> GetAsFileRef(PP_Resource res) const;
scoped_refptr<ImageData> GetAsImageData(PP_Resource res) const;
scoped_refptr<URLLoader> GetAsURLLoader(PP_Resource res) const;
scoped_refptr<URLRequestInfo> GetAsURLRequestInfo(PP_Resource res) const;
scoped_refptr<URLResponseInfo> GetAsURLResponseInfo(PP_Resource res) const;
- scoped_refptr<Buffer> GetAsBuffer(PP_Resource res) const;
private:
friend struct DefaultSingletonTraits<ResourceTracker>;
« no previous file with comments | « webkit/glue/plugins/pepper_resource.h ('k') | webkit/glue/plugins/pepper_resource_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698