OLD | NEW |
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 #include "media/blink/webmediaplayer_util.h" | 5 #include "media/blink/webmediaplayer_util.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "media/base/bind_to_current_loop.h" | 13 #include "media/base/bind_to_current_loop.h" |
14 #include "media/base/media_client.h" | 14 #include "media/base/media_client.h" |
15 #include "third_party/WebKit/public/platform/URLConversion.h" | 15 #include "third_party/WebKit/public/platform/URLConversion.h" |
16 #include "third_party/WebKit/public/platform/WebMediaPlayerEncryptedMediaClient.
h" | 16 #include "third_party/WebKit/public/platform/WebMediaPlayerEncryptedMediaClient.
h" |
17 | 17 |
18 namespace media { | 18 namespace media { |
19 | 19 |
20 blink::WebTimeRanges ConvertToWebTimeRanges( | 20 blink::WebTimeRanges ConvertToWebTimeRanges( |
21 const Ranges<base::TimeDelta>& ranges) { | 21 const Ranges<base::TimeDelta>& ranges) { |
22 blink::WebTimeRanges result(ranges.size()); | 22 blink::WebTimeRanges result(ranges.size()); |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 } // namespace | 250 } // namespace |
251 | 251 |
252 OutputDeviceStatusCB ConvertToOutputDeviceStatusCB( | 252 OutputDeviceStatusCB ConvertToOutputDeviceStatusCB( |
253 blink::WebSetSinkIdCallbacks* web_callbacks) { | 253 blink::WebSetSinkIdCallbacks* web_callbacks) { |
254 return media::BindToCurrentLoop( | 254 return media::BindToCurrentLoop( |
255 base::Bind(RunSetSinkIdCallback, SetSinkIdCallback(web_callbacks))); | 255 base::Bind(RunSetSinkIdCallback, SetSinkIdCallback(web_callbacks))); |
256 } | 256 } |
257 | 257 |
258 } // namespace media | 258 } // namespace media |
OLD | NEW |