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

Unified Diff: webkit/glue/multipart_response_delegate.cc

Issue 8349009: Support playback & seeking in media files over 2G. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « webkit/glue/multipart_response_delegate.h ('k') | webkit/glue/multipart_response_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/multipart_response_delegate.cc
diff --git a/webkit/glue/multipart_response_delegate.cc b/webkit/glue/multipart_response_delegate.cc
index 3a4f05311794dea92e6b318a1d4d6bd0a499e18d..5ae2ae39f9d673d9057404c7e033d7e68c1c4b7b 100644
--- a/webkit/glue/multipart_response_delegate.cc
+++ b/webkit/glue/multipart_response_delegate.cc
@@ -325,9 +325,9 @@ bool MultipartResponseDelegate::ReadMultipartBoundary(
bool MultipartResponseDelegate::ReadContentRanges(
const WebURLResponse& response,
- int* content_range_lower_bound,
- int* content_range_upper_bound,
- int* content_range_instance_size) {
+ int64* content_range_lower_bound,
+ int64* content_range_upper_bound,
+ int64* content_range_instance_size) {
std::string content_range = response.httpHeaderField("Content-Range").utf8();
if (content_range.empty()) {
@@ -390,12 +390,14 @@ bool MultipartResponseDelegate::ReadContentRanges(
content_range.substr(byte_range_instance_size_start_offset,
byte_range_instance_size_characters);
- if (!base::StringToInt(byte_range_lower_bound, content_range_lower_bound))
+ if (!base::StringToInt64(byte_range_lower_bound, content_range_lower_bound))
return false;
- if (!base::StringToInt(byte_range_upper_bound, content_range_upper_bound))
+ if (!base::StringToInt64(byte_range_upper_bound, content_range_upper_bound))
return false;
- if (!base::StringToInt(byte_range_instance_size, content_range_instance_size))
+ if (!base::StringToInt64(byte_range_instance_size,
+ content_range_instance_size)) {
return false;
+ }
return true;
}
« no previous file with comments | « webkit/glue/multipart_response_delegate.h ('k') | webkit/glue/multipart_response_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698