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

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

Issue 1430063003: use MEDIA_BLINK_EXPORT in media/blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no (c) Created 5 years, 1 month 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.h ('k') | media/blink/webmediasource_impl.h » ('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 MEDIA_BLINK_WEBMEDIAPLAYER_UTIL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_UTIL_H_
6 #define MEDIA_BLINK_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/audio_renderer_sink.h" 9 #include "media/base/audio_renderer_sink.h"
10 #include "media/base/eme_constants.h" 10 #include "media/base/eme_constants.h"
11 #include "media/base/media_export.h"
12 #include "media/base/pipeline_status.h" 11 #include "media/base/pipeline_status.h"
13 #include "media/base/ranges.h" 12 #include "media/base/ranges.h"
13 #include "media/blink/media_blink_export.h"
14 #include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.h" 14 #include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.h"
15 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 15 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
16 #include "third_party/WebKit/public/platform/WebSetSinkIdCallbacks.h" 16 #include "third_party/WebKit/public/platform/WebSetSinkIdCallbacks.h"
17 #include "third_party/WebKit/public/platform/WebTimeRange.h" 17 #include "third_party/WebKit/public/platform/WebTimeRange.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace media { 20 namespace media {
21 21
22 blink::WebTimeRanges MEDIA_EXPORT ConvertToWebTimeRanges( 22 blink::WebTimeRanges MEDIA_BLINK_EXPORT
23 const Ranges<base::TimeDelta>& ranges); 23 ConvertToWebTimeRanges(const Ranges<base::TimeDelta>& ranges);
24 24
25 blink::WebMediaPlayer::NetworkState MEDIA_EXPORT PipelineErrorToNetworkState( 25 blink::WebMediaPlayer::NetworkState MEDIA_BLINK_EXPORT
26 PipelineStatus error); 26 PipelineErrorToNetworkState(PipelineStatus error);
27 27
28 // Report various metrics to UMA and RAPPOR. 28 // Report various metrics to UMA and RAPPOR.
29 void MEDIA_EXPORT ReportMetrics(blink::WebMediaPlayer::LoadType load_type, 29 void MEDIA_BLINK_EXPORT ReportMetrics(blink::WebMediaPlayer::LoadType load_type,
30 const GURL& url, 30 const GURL& url,
31 const GURL& origin_url); 31 const GURL& origin_url);
32 32
33 // Record a RAPPOR metric for the origin of an HLS playback. 33 // Record a RAPPOR metric for the origin of an HLS playback.
34 void MEDIA_EXPORT RecordOriginOfHLSPlayback(const GURL& origin_url); 34 void MEDIA_BLINK_EXPORT RecordOriginOfHLSPlayback(const GURL& origin_url);
35 35
36 // Convert Initialization Data Types. 36 // Convert Initialization Data Types.
37 EmeInitDataType MEDIA_EXPORT 37 EmeInitDataType MEDIA_BLINK_EXPORT
38 ConvertToEmeInitDataType(blink::WebEncryptedMediaInitDataType init_data_type); 38 ConvertToEmeInitDataType(blink::WebEncryptedMediaInitDataType init_data_type);
39 blink::WebEncryptedMediaInitDataType MEDIA_EXPORT 39 blink::WebEncryptedMediaInitDataType MEDIA_BLINK_EXPORT
40 ConvertToWebInitDataType(EmeInitDataType init_data_type); 40 ConvertToWebInitDataType(EmeInitDataType init_data_type);
41 41
42 // Wraps a blink::WebSetSinkIdCallbacks into a media::SwitchOutputDeviceCB 42 // Wraps a blink::WebSetSinkIdCallbacks into a media::SwitchOutputDeviceCB
43 // and binds it to the current thread 43 // and binds it to the current thread
44 SwitchOutputDeviceCB MEDIA_EXPORT 44 SwitchOutputDeviceCB MEDIA_BLINK_EXPORT
45 ConvertToSwitchOutputDeviceCB(blink::WebSetSinkIdCallbacks* web_callbacks); 45 ConvertToSwitchOutputDeviceCB(blink::WebSetSinkIdCallbacks* web_callbacks);
46 46
47 } // namespace media 47 } // namespace media
48 48
49 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_UTIL_H_ 49 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_UTIL_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_params.h ('k') | media/blink/webmediasource_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698