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

Unified Diff: media/blink/test_response_generator.h

Issue 1220963004: Check the response URL origin in BufferedDataSource to avoid mixing cross-origin responses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated hubbe's comment Created 5 years, 5 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 | « media/blink/buffered_resource_loader.cc ('k') | media/blink/test_response_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/test_response_generator.h
diff --git a/media/blink/test_response_generator.h b/media/blink/test_response_generator.h
index 7e3e98d910a1a43256d08c4d8f3a7c89311d2d5e..e5a1161d975f800e6a697c60791dc7458eb6e057 100644
--- a/media/blink/test_response_generator.h
+++ b/media/blink/test_response_generator.h
@@ -42,6 +42,18 @@ class TestResponseGenerator {
// headers via |flags|.
blink::WebURLResponse Generate206(int64 first_byte_offset, Flags flags);
+ // Generates a regular HTTP 206 response starting from |first_byte_offset|
+ // until |last_byte_offset|.
+ blink::WebURLResponse GeneratePartial206(int64 first_byte_offset,
+ int64 last_byte_offset);
+
+ // Generates a custom HTTP 206 response starting from |first_byte_offset|
+ // until |last_byte_offset|. You can tweak what gets included in the
+ // headers via |flags|.
+ blink::WebURLResponse GeneratePartial206(int64 first_byte_offset,
+ int64 last_byte_offset,
+ Flags flags);
+
// Generates a regular HTTP 404 response.
blink::WebURLResponse Generate404();
« no previous file with comments | « media/blink/buffered_resource_loader.cc ('k') | media/blink/test_response_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698