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

Unified Diff: content/child/database_util.cc

Issue 1006423008: Add SetFileSize() IPC for WebSQL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove misleading comment. Created 5 years, 9 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/child/database_util.cc
diff --git a/content/child/database_util.cc b/content/child/database_util.cc
index 34cf1575a38c127e834a89be2563690716c8e09e..28a5c87db38038ef01892310c5431e878de12536 100644
--- a/content/child/database_util.cc
+++ b/content/child/database_util.cc
@@ -67,4 +67,14 @@ long long DatabaseUtil::DatabaseGetSpaceAvailable(
return rv;
}
+bool DatabaseUtil::DatabaseSetFileSize(
+ const WebString& vfs_file_name,
+ int64 size,
+ IPC::SyncMessageFilter* sync_message_filter) {
+ bool rv = false;
+ scoped_refptr<IPC::SyncMessageFilter> filter(sync_message_filter);
jam 2015/04/03 15:14:23 why is this local ref taken? i.e. why isn't the re
Scott Hess - ex-Googler 2015/04/03 17:16:36 I can't see why any of the refs in this file are n
+ filter->Send(new DatabaseHostMsg_SetFileSize(vfs_file_name, size, &rv));
+ return rv;
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698