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: webkit/media/android/webmediaplayer_proxy_android.h

Issue 14247018: Implement WebRTC in Chrome for TV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Timestamp adjustment in RTCVideoDecoderBridgeTv Created 7 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 5 #ifndef WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #if defined(GOOGLE_TV) 12 #if defined(GOOGLE_TV)
13 #include "media/base/android/demuxer_stream_player_params.h" 13 #include "media/base/android/demuxer_stream_player_params.h"
14 #endif 14 #endif
15 15
16 namespace webkit_media { 16 namespace webkit_media {
17 17
18 // An interface to facilitate the IPC between the browser side 18 // An interface to facilitate the IPC between the browser side
19 // android::MediaPlayer and the WebMediaPlayerImplAndroid in the renderer 19 // android::MediaPlayer and the WebMediaPlayerAndroid in the renderer
20 // process. 20 // process.
21 // Implementation is provided by content::WebMediaPlayerProxyImplAndroid. 21 // Implementation is provided by content::WebMediaPlayerProxyImplAndroid.
22 class WebMediaPlayerProxyAndroid { 22 class WebMediaPlayerProxyAndroid {
23 public: 23 public:
24 virtual ~WebMediaPlayerProxyAndroid(); 24 virtual ~WebMediaPlayerProxyAndroid();
25 25
26 // Initialize a MediaPlayerBridge object in browser process 26 // Initialize a MediaPlayerBridge object in browser process
27 virtual void Initialize(int player_id, const GURL& url, 27 virtual void Initialize(int player_id, const GURL& url, int flags,
28 bool is_media_source,
29 const GURL& first_party_for_cookies) = 0; 28 const GURL& first_party_for_cookies) = 0;
30 29
31 // Start the player. 30 // Start the player.
32 virtual void Start(int player_id) = 0; 31 virtual void Start(int player_id) = 0;
33 32
34 // Pause the player. 33 // Pause the player.
35 virtual void Pause(int player_id) = 0; 34 virtual void Pause(int player_id) = 0;
36 35
37 // Perform seek on the player. 36 // Perform seek on the player.
38 virtual void Seek(int player_id, base::TimeDelta time) = 0; 37 virtual void Seek(int player_id, base::TimeDelta time) = 0;
(...skipping 22 matching lines...) Expand all
61 // Return the data to the media source player when data is ready. 60 // Return the data to the media source player when data is ready.
62 virtual void ReadFromDemuxerAck( 61 virtual void ReadFromDemuxerAck(
63 int player_id, 62 int player_id,
64 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0; 63 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0;
65 #endif 64 #endif
66 }; 65 };
67 66
68 } // namespace webkit_media 67 } // namespace webkit_media
69 68
70 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 69 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698