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

Side by Side Diff: webkit/media/android/webmediaplayer_in_process_android.h

Issue 12443003: Implement out-of-band video compositing on Android: Step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 7 years, 9 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_IN_PROCESS_ANDROID_H_ 5 #ifndef WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_
6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_ 6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include <jni.h> 10 #include <jni.h>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const GetCookieCB& callback) OVERRIDE; 45 const GetCookieCB& callback) OVERRIDE;
46 46
47 private: 47 private:
48 WebKit::WebCookieJar* cookie_jar_; 48 WebKit::WebCookieJar* cookie_jar_;
49 DISALLOW_COPY_AND_ASSIGN(InProcessCookieGetter); 49 DISALLOW_COPY_AND_ASSIGN(InProcessCookieGetter);
50 }; 50 };
51 51
52 // This class implements WebKit::WebMediaPlayer by keeping the android 52 // This class implements WebKit::WebMediaPlayer by keeping the android
53 // mediaplayer in the render process. This mode is being deprecated 53 // mediaplayer in the render process. This mode is being deprecated
54 // as mediaplayer is going to be moved to the browser process. 54 // as mediaplayer is going to be moved to the browser process.
55 class WebMediaPlayerInProcessAndroid : public WebMediaPlayerAndroid { 55 class WebMediaPlayerInProcessAndroid : public WebMediaPlayerAndroid {
scherkus (not reviewing) 2013/03/07 00:09:13 qinmin: any ETA when can we delete this code?
qinmin 2013/03/07 00:22:19 hmm... I want to keep it for DRT tests. Sievers is
scherkus (not reviewing) 2013/03/07 00:28:56 Will using content_shell for layout tests change t
no sievers 2013/03/07 00:32:02 Yes, I'd be a fan of running layout tests with the
56 public: 56 public:
57 // Construct a WebMediaPlayerInProcessAndroid object. 57 // Construct a WebMediaPlayerInProcessAndroid object.
58 WebMediaPlayerInProcessAndroid( 58 WebMediaPlayerInProcessAndroid(
59 WebKit::WebFrame* frame, 59 WebKit::WebFrame* frame,
60 WebKit::WebMediaPlayerClient* client, 60 WebKit::WebMediaPlayerClient* client,
61 WebKit::WebCookieJar* cookie_jar, 61 WebKit::WebCookieJar* cookie_jar,
62 WebMediaPlayerManagerAndroid* manager, 62 WebMediaPlayerManagerAndroid* manager,
63 media::MediaPlayerBridgeManager* resource_manager, 63 media::MediaPlayerBridgeManager* resource_manager,
64 StreamTextureFactory* factory, 64 StreamTextureFactory* factory,
65 bool disable_media_history_logging); 65 bool disable_media_history_logging);
(...skipping 18 matching lines...) Expand all
84 84
85 private: 85 private:
86 // Methods inherited from WebMediaPlayerAndroid. 86 // Methods inherited from WebMediaPlayerAndroid.
87 virtual void InitializeMediaPlayer(GURL url) OVERRIDE; 87 virtual void InitializeMediaPlayer(GURL url) OVERRIDE;
88 virtual void PlayInternal() OVERRIDE; 88 virtual void PlayInternal() OVERRIDE;
89 virtual void PauseInternal() OVERRIDE; 89 virtual void PauseInternal() OVERRIDE;
90 virtual void SeekInternal(base::TimeDelta time) OVERRIDE; 90 virtual void SeekInternal(base::TimeDelta time) OVERRIDE;
91 virtual float GetCurrentTimeInternal() const OVERRIDE; 91 virtual float GetCurrentTimeInternal() const OVERRIDE;
92 virtual void ReleaseResourcesInternal() OVERRIDE; 92 virtual void ReleaseResourcesInternal() OVERRIDE;
93 virtual void Destroy() OVERRIDE; 93 virtual void Destroy() OVERRIDE;
94 virtual void RequestExternalSurface() OVERRIDE;
94 95
95 WebKit::WebFrame* const frame_; 96 WebKit::WebFrame* const frame_;
96 97
97 // Bridge to the android media player. 98 // Bridge to the android media player.
98 scoped_ptr<media::MediaPlayerBridge> media_player_; 99 scoped_ptr<media::MediaPlayerBridge> media_player_;
99 100
100 // Whether playback has completed. 101 // Whether playback has completed.
101 float playback_completed_; 102 float playback_completed_;
102 103
103 // Pointer to the cookie jar to get the cookie for the media url. 104 // Pointer to the cookie jar to get the cookie for the media url.
104 WebKit::WebCookieJar* cookie_jar_; 105 WebKit::WebCookieJar* cookie_jar_;
105 106
106 // Manager for managing all the hardware player resources. 107 // Manager for managing all the hardware player resources.
107 media::MediaPlayerBridgeManager* resource_manager_; 108 media::MediaPlayerBridgeManager* resource_manager_;
108 109
109 // Whether we should disable history logging. 110 // Whether we should disable history logging.
110 bool disable_history_logging_; 111 bool disable_history_logging_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerInProcessAndroid); 113 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerInProcessAndroid);
113 }; 114 };
114 115
115 } // namespace webkit_media 116 } // namespace webkit_media
116 117
117 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_ 118 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IN_PROCESS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698