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

Unified Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 7433006: Pepper quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 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/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 7c2ad189559f16c69cd8c7ce5de3f0b088c7a55e..b18af96c6f4478ff09bd42ecb1d00aa99de1dc16 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -24,6 +24,7 @@
#include "ui/gfx/size.h"
#include "webkit/fileapi/file_system_types.h"
#include "webkit/plugins/ppapi/dir_contents.h"
+#include "webkit/quota/quota_types.h"
class AudioMessageFilter;
class GURL;
@@ -325,6 +326,14 @@ class PluginDelegate {
const GURL& directory_path,
fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
+ // For quota handlings for FileIO API.
+ typedef Callback1<int64>::Type AvailableSpaceCallback;
+ virtual void QueryAvailableSpace(const GURL& origin,
+ quota::StorageType type,
+ AvailableSpaceCallback* callback) = 0;
+ virtual void WillUpdateFile(const GURL& file_path) = 0;
+ virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0;
+
virtual base::PlatformFileError OpenFile(const PepperFilePath& path,
int flags,
base::PlatformFile* file) = 0;
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698