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

Side by Side Diff: media/blink/webmediaplayer_util.h

Issue 495353003: Move WebMediaPlayerImpl and its dependencies to media/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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
« no previous file with comments | « media/blink/webmediaplayer_params.cc ('k') | media/blink/webmediaplayer_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_UTIL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_UTIL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_UTIL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_UTIL_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "media/base/media_export.h"
9 #include "media/base/pipeline_status.h" 10 #include "media/base/pipeline_status.h"
10 #include "media/base/ranges.h" 11 #include "media/base/ranges.h"
11 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 12 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
12 #include "third_party/WebKit/public/platform/WebTimeRange.h" 13 #include "third_party/WebKit/public/platform/WebTimeRange.h"
13 #include "url/gurl.h" 14 #include "url/gurl.h"
14 15
15 namespace content { 16 namespace media {
16 17
17 // Platform independent method for converting and rounding floating point 18 // Platform independent method for converting and rounding floating point
18 // seconds to an int64 timestamp. 19 // seconds to an int64 timestamp.
19 // 20 //
20 // Refer to https://bugs.webkit.org/show_bug.cgi?id=52697 for details. 21 // Refer to https://bugs.webkit.org/show_bug.cgi?id=52697 for details.
21 base::TimeDelta ConvertSecondsToTimestamp(double seconds); 22 base::TimeDelta MEDIA_EXPORT ConvertSecondsToTimestamp(double seconds);
22 23
23 blink::WebTimeRanges ConvertToWebTimeRanges( 24 blink::WebTimeRanges MEDIA_EXPORT ConvertToWebTimeRanges(
24 const media::Ranges<base::TimeDelta>& ranges); 25 const Ranges<base::TimeDelta>& ranges);
25 26
26 blink::WebMediaPlayer::NetworkState PipelineErrorToNetworkState( 27 blink::WebMediaPlayer::NetworkState MEDIA_EXPORT PipelineErrorToNetworkState(
27 media::PipelineStatus error); 28 PipelineStatus error);
28 29
29 // Report the scheme of Media URIs. 30 // Report the scheme of Media URIs.
30 void ReportMediaSchemeUma(const GURL& url); 31 void MEDIA_EXPORT ReportMediaSchemeUma(const GURL& url);
31 32
32 } // namespace content 33 } // namespace media
33 34
34 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_UTIL_H_ 35 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_UTIL_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_params.cc ('k') | media/blink/webmediaplayer_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698