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

Unified Diff: content/renderer/pepper/pepper_file_io_host.h

Issue 13508005: Allow RequestOSFileHandle if an app has unlimited storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert most of patch set 2 Created 7 years, 8 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
Index: content/renderer/pepper/pepper_file_io_host.h
diff --git a/content/renderer/pepper/pepper_file_io_host.h b/content/renderer/pepper/pepper_file_io_host.h
index 6f3ab97764f3a5cb2f443e1693fdf3b692ce3df8..9146fd70164eb3ed52b81c19fe0295d295364685 100644
--- a/content/renderer/pepper/pepper_file_io_host.h
+++ b/content/renderer/pepper/pepper_file_io_host.h
@@ -84,6 +84,7 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
ReplyMessageContext reply_context,
base::PlatformFileError error_code,
base::PassPlatformFile file,
+ quota::QuotaLimitType quota_policy,
const PluginDelegate::NotifyCloseFileCallback& callback);
void ExecutePlatformQueryCallback(ReplyMessageContext reply_context,
base::PlatformFileError error_code,
@@ -111,6 +112,9 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
// Valid only for PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY}.
GURL file_system_url_;
+ // Used to check if we can pass file handle to plugins.
+ quota::QuotaLimitType quota_policy_;
+
// Callback function for notifying when the file handle is closed.
PluginDelegate::NotifyCloseFileCallback notify_close_file_callback_;

Powered by Google App Engine
This is Rietveld 408576698