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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ 5 #ifndef MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_
6 #define MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ 6 #define MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Current playback rate. 231 // Current playback rate.
232 double playback_rate_; 232 double playback_rate_;
233 233
234 scoped_refptr<MediaLog> media_log_; 234 scoped_refptr<MediaLog> media_log_;
235 235
236 // Host object to report buffered byte range changes to. 236 // Host object to report buffered byte range changes to.
237 BufferedDataSourceHost* host_; 237 BufferedDataSourceHost* host_;
238 238
239 DownloadingCB downloading_cb_; 239 DownloadingCB downloading_cb_;
240 240
241 // The orinal URL of the first response. If the response is generated in the
242 // 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.
243 // 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.
244 // first response, it is treated as an error.
245 GURL response_original_url_;
246
241 // Disallow rebinding WeakReference ownership to a different thread by keeping 247 // Disallow rebinding WeakReference ownership to a different thread by keeping
242 // a persistent reference. This avoids problems with the thread-safety of 248 // a persistent reference. This avoids problems with the thread-safety of
243 // reaching into this class from multiple threads to attain a WeakPtr. 249 // reaching into this class from multiple threads to attain a WeakPtr.
244 base::WeakPtr<BufferedDataSource> weak_ptr_; 250 base::WeakPtr<BufferedDataSource> weak_ptr_;
245 base::WeakPtrFactory<BufferedDataSource> weak_factory_; 251 base::WeakPtrFactory<BufferedDataSource> weak_factory_;
246 252
247 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource); 253 DISALLOW_COPY_AND_ASSIGN(BufferedDataSource);
248 }; 254 };
249 255
250 } // namespace media 256 } // namespace media
251 257
252 #endif // MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_ 258 #endif // MEDIA_BLINK_BUFFERED_DATA_SOURCE_H_
OLDNEW
« 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