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

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: refactored according to Ami's suggestion 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 #include "media/base/android/media_player_bridge.h"
12 #if defined(GOOGLE_TV) 13 #if defined(GOOGLE_TV)
13 #include "media/base/android/demuxer_stream_player_params.h" 14 #include "media/base/android/demuxer_stream_player_params.h"
14 #endif 15 #endif
15 16
16 namespace webkit_media { 17 namespace webkit_media {
17 18
18 // An interface to facilitate the IPC between the browser side 19 // An interface to facilitate the IPC between the browser side
19 // android::MediaPlayer and the WebMediaPlayerImplAndroid in the renderer 20 // android::MediaPlayer and the WebMediaPlayerAndroid in the renderer
20 // process. 21 // process.
21 // Implementation is provided by content::WebMediaPlayerProxyImplAndroid. 22 // Implementation is provided by content::WebMediaPlayerProxyImplAndroid.
22 class WebMediaPlayerProxyAndroid { 23 class WebMediaPlayerProxyAndroid {
23 public: 24 public:
24 virtual ~WebMediaPlayerProxyAndroid(); 25 virtual ~WebMediaPlayerProxyAndroid();
25 26
26 // Initialize a MediaPlayerAndroid object in browser process 27 // Initialize a MediaPlayerBridge object in browser process
27 virtual void Initialize(int player_id, const GURL& url, 28 virtual void Initialize(
28 bool is_media_source, 29 int player_id,
29 const GURL& first_party_for_cookies) = 0; 30 const GURL& url,
31 media::MediaPlayerAndroid::MediaSourceType media_source_type,
32 const GURL& first_party_for_cookies) = 0;
30 33
31 // Start the player. 34 // Start the player.
32 virtual void Start(int player_id) = 0; 35 virtual void Start(int player_id) = 0;
33 36
34 // Pause the player. 37 // Pause the player.
35 virtual void Pause(int player_id) = 0; 38 virtual void Pause(int player_id) = 0;
36 39
37 // Perform seek on the player. 40 // Perform seek on the player.
38 virtual void Seek(int player_id, base::TimeDelta time) = 0; 41 virtual void Seek(int player_id, base::TimeDelta time) = 0;
39 42
(...skipping 22 matching lines...) Expand all
62 // Return the data to the media source player when data is ready. 65 // Return the data to the media source player when data is ready.
63 virtual void ReadFromDemuxerAck( 66 virtual void ReadFromDemuxerAck(
64 int player_id, 67 int player_id,
65 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0; 68 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0;
66 #endif 69 #endif
67 }; 70 };
68 71
69 } // namespace webkit_media 72 } // namespace webkit_media
70 73
71 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 74 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698