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

Unified Diff: media/blink/buffered_data_source.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: Created 5 years, 6 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 | « no previous file | media/blink/buffered_data_source.cc » ('j') | media/blink/buffered_data_source_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/buffered_data_source.h
diff --git a/media/blink/buffered_data_source.h b/media/blink/buffered_data_source.h
index 32f14816fcdce5a3307fb8a898c965d67f2b2c7d..766fc9854eaaa864625fff9704882c1b93c35585 100644
--- a/media/blink/buffered_data_source.h
+++ b/media/blink/buffered_data_source.h
@@ -238,6 +238,12 @@ class MEDIA_EXPORT BufferedDataSource : public DataSource {
DownloadingCB downloading_cb_;
+ // The orinal URL of the first response. If the response is generated in the
+ // Service Worker this URL is empty. BufferedDataSource checks the orinal URL
falken 2015/07/02 01:04:08 "original URL" (2 places) "a Service Worker"
horo 2015/07/02 03:10:49 Done.
+ // of the succeeding response. If it is different from the original URL of the
falken 2015/07/02 01:04:08 "of each successive response"?
horo 2015/07/02 03:10:49 Done.
+ // first response, it is treated as an error.
+ GURL response_original_url_;
+
// Disallow rebinding WeakReference ownership to a different thread by keeping
// a persistent reference. This avoids problems with the thread-safety of
// reaching into this class from multiple threads to attain a WeakPtr.
« no previous file with comments | « no previous file | media/blink/buffered_data_source.cc » ('j') | media/blink/buffered_data_source_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698