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

Unified Diff: webkit/common/blob/blob_data.cc

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: webkit/common/blob/blob_data.cc
diff --git a/webkit/common/blob/blob_data.cc b/webkit/common/blob/blob_data.cc
index 368186195163ad219c0705a0625e09c1e7bb70d6..e54d9474c6a88c65b89d4f467961d30ac12daec8 100644
--- a/webkit/common/blob/blob_data.cc
+++ b/webkit/common/blob/blob_data.cc
@@ -50,6 +50,17 @@ void BlobData::AppendFileSystemFile(
expected_modification_time);
}
+#if defined(OS_ANDROID)
+void BlobData::AppendContentUrlFile(
+ const GURL& url, uint64 offset, uint64 length,
+ const base::Time& expected_modification_time) {
+ DCHECK_GT(length, 0ul);
+ items_.push_back(Item());
+ items_.back().SetToContentUrlRange(url, offset, length,
+ expected_modification_time);
+}
+#endif
+
int64 BlobData::GetMemoryUsage() const {
int64 memory = 0;
for (std::vector<Item>::const_iterator iter = items_.begin();

Powered by Google App Engine
This is Rietveld 408576698