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

Unified Diff: webkit/glue/plugins/pepper_resource.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_plugin_module.cc ('k') | webkit/glue/plugins/pepper_resource_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_resource.h
===================================================================
--- webkit/glue/plugins/pepper_resource.h (revision 50938)
+++ webkit/glue/plugins/pepper_resource.h (working copy)
@@ -13,6 +13,10 @@
class Buffer;
class DeviceContext2D;
+class DirectoryReader;
+class FileChooser;
+class FileIO;
+class FileRef;
class ImageData;
class PluginModule;
class URLLoader;
@@ -30,12 +34,16 @@
// Type-specific getters for individual resource types. These will return
// NULL if the resource does not match the specified type.
+ virtual Buffer* AsBuffer() { return NULL; }
virtual DeviceContext2D* AsDeviceContext2D() { return NULL; }
+ virtual DirectoryReader* AsDirectoryReader() { return NULL; }
+ virtual FileChooser* AsFileChooser() { return NULL; }
+ virtual FileIO* AsFileIO() { return NULL; }
+ virtual FileRef* AsFileRef() { return NULL; }
virtual ImageData* AsImageData() { return NULL; }
virtual URLLoader* AsURLLoader() { return NULL; }
virtual URLRequestInfo* AsURLRequestInfo() { return NULL; }
virtual URLResponseInfo* AsURLResponseInfo() { return NULL; }
- virtual Buffer* AsBuffer() { return NULL; }
private:
PluginModule* module_; // Non-owning pointer to our module.
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_module.cc ('k') | webkit/glue/plugins/pepper_resource_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698