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

Unified Diff: webkit/common/data_element.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/data_element.cc
diff --git a/webkit/common/data_element.cc b/webkit/common/data_element.cc
index f94a4c887b6a28d3813b4ec49eebc864ac2d5c54..287b18d4c8d5b231ef074fc3ebab8e46b1977844 100644
--- a/webkit/common/data_element.cc
+++ b/webkit/common/data_element.cc
@@ -46,4 +46,17 @@ void DataElement::SetToFileSystemUrlRange(
expected_modification_time_ = expected_modification_time;
}
+#if defined(OS_ANDROID)
+void DataElement::SetToContentUrlRange(
+ const GURL& content_url,
+ uint64 offset, uint64 length,
+ const base::Time& expected_modification_time) {
+ type_ = TYPE_CONTENT_URL;
+ content_url_ = content_url;
+ offset_ = offset;
+ length_ = length;
+ expected_modification_time_ = expected_modification_time;
+}
+#endif
+
} // webkit_common

Powered by Google App Engine
This is Rietveld 408576698