OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_BASE_MEDIA_URL_PARAMS_H_ |
| 6 #define MEDIA_BASE_MEDIA_URL_PARAMS_H_ |
| 7 |
| 8 #include "url/gurl.h" |
| 9 |
| 10 namespace media { |
| 11 |
| 12 // Encapsulates the necessary information in order to play media in URL based |
| 13 // playback (as opposed to stream based). |
| 14 // See MediaUrlDemuxer and MediaPlayerRenderer. |
| 15 struct MEDIA_EXPORT MediaUrlParams { |
| 16 // URL of the media to be played. |
| 17 GURL media_url; |
| 18 |
| 19 // Used to play media in authenticated scenarios. |
| 20 // NOTE: This URL is not the first party cookies, but the first party URL |
| 21 // returned by blink::WebDocument::firstPartyForCookies(). |
| 22 // In the MediaPlayerRenderer case, it will ultimately be used in |
| 23 // MediaResourceGetterTask::CheckPolicyForCookies, to limit the scope of the |
| 24 // cookies that the MediaPlayerRenderer has access to. |
| 25 GURL first_party_for_cookies; |
| 26 }; |
| 27 |
| 28 } // namespace media |
| 29 |
| 30 #endif // MEDIA_BASE_MEDIA_URL_PARAMS_H_ |
OLD | NEW |