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

Unified Diff: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc

Issue 130053003: [Pepper] Wire up append mode writing support of FileIO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/max_written_offsets/file_sizes/g Created 6 years, 11 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/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
diff --git a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
index 89d7d6800a9a5d8b838b606b2e8d7f2bfc4d975a..fe2c2b12588080443210bc9da1076d397f7dff5c 100644
--- a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
@@ -365,7 +365,7 @@ int32_t PepperFileSystemBrowserHost::OnHostMsgInitIsolatedFileSystem(
int32_t PepperFileSystemBrowserHost::OnHostMsgReserveQuota(
ppapi::host::HostMessageContext* context,
int64_t amount,
- const ppapi::FileSizeMap& file_sizes) {
+ const ppapi::FileGrowthMap& file_growths) {
DCHECK(ChecksQuota());
DCHECK(amount > 0);
@@ -373,11 +373,6 @@ int32_t PepperFileSystemBrowserHost::OnHostMsgReserveQuota(
return PP_ERROR_INPROGRESS;
reserving_quota_ = true;
- ppapi::FileGrowthMap file_growths;
- for (ppapi::FileSizeMap::const_iterator it = file_sizes.begin();
- it != file_sizes.end(); ++it)
- file_growths[it->first] = ppapi::FileGrowth(it->second, 0);
-
int64_t reservation_amount = std::max<int64_t>(kMinimumQuotaReservationSize,
amount);
file_system_context_->default_file_task_runner()->PostTask(
@@ -463,7 +458,7 @@ void PepperFileSystemBrowserHost::GotQuotaReservation(
void PepperFileSystemBrowserHost::GotReservedQuota(
ppapi::host::ReplyMessageContext reply_context,
int64_t amount,
- const ppapi::FileSizeMap& max_written_offsets) {
+ const ppapi::FileSizeMap& file_sizes) {
DCHECK(reserving_quota_);
reserving_quota_ = false;
reserved_quota_ = amount;
@@ -471,7 +466,7 @@ void PepperFileSystemBrowserHost::GotReservedQuota(
reply_context.params.set_result(PP_OK);
host()->SendReply(
reply_context,
- PpapiPluginMsg_FileSystem_ReserveQuotaReply(amount, max_written_offsets));
+ PpapiPluginMsg_FileSystem_ReserveQuotaReply(amount, file_sizes));
}
std::string PepperFileSystemBrowserHost::GetPluginMimeType() const {

Powered by Google App Engine
This is Rietveld 408576698