summaryrefslogtreecommitdiffstats
path: root/webkit/media/test_response_generator.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 20:57:26 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 20:57:26 +0000
commit44d5a60484fbd580f92950297a4570eeadf19356 (patch)
tree1136abe9e378a01a056d5a92b57a0ea7f93e1719 /webkit/media/test_response_generator.h
parent193b39d2ef3ec7a4f1692fd4448c515c06bb46d1 (diff)
downloadchromium_src-44d5a60484fbd580f92950297a4570eeadf19356.zip
chromium_src-44d5a60484fbd580f92950297a4570eeadf19356.tar.gz
chromium_src-44d5a60484fbd580f92950297a4570eeadf19356.tar.bz2
Don't trigger second request on missing instance size in Content-Range.
Previously we were relying on the parser for multipart/x-mixed-replace to parse Content-Range. This CL instead introduces a parser that implements HTTP/1.1 (allowing instance-size to be "*"). BUG=104795 Review URL: http://codereview.chromium.org/9703073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/media/test_response_generator.h')
-rw-r--r--webkit/media/test_response_generator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/media/test_response_generator.h b/webkit/media/test_response_generator.h
index 73978c5..d912d88 100644
--- a/webkit/media/test_response_generator.h
+++ b/webkit/media/test_response_generator.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -20,6 +20,7 @@ class TestResponseGenerator {
kNoAcceptRanges = 1 << 0, // Don't include Accept-Ranges in 206 response.
kNoContentRange = 1 << 1, // Don't include Content-Range in 206 response.
kNoContentLength = 1 << 2, // Don't include Content-Length in 206 response.
+ kNoContentRangeInstanceSize = 1 << 3, // Content-Range: N-M/* in 206.
};
// Build an HTTP response generator for the given URL. |content_length| is