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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 23875003: Merge 219225 "Run |demuxer_| related tasks in the media thread i..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 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 | Annotate | Revision Log
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_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // player can enter fullscreen. This logic should probably be moved into 70 // player can enter fullscreen. This logic should probably be moved into
71 // blink, so that enterFullscreen() will not be called if another video is 71 // blink, so that enterFullscreen() will not be called if another video is
72 // already in fullscreen. 72 // already in fullscreen.
73 WebMediaPlayerAndroid( 73 WebMediaPlayerAndroid(
74 WebKit::WebFrame* frame, 74 WebKit::WebFrame* frame,
75 WebKit::WebMediaPlayerClient* client, 75 WebKit::WebMediaPlayerClient* client,
76 base::WeakPtr<WebMediaPlayerDelegate> delegate, 76 base::WeakPtr<WebMediaPlayerDelegate> delegate,
77 RendererMediaPlayerManager* manager, 77 RendererMediaPlayerManager* manager,
78 WebMediaPlayerProxyAndroid* proxy, 78 WebMediaPlayerProxyAndroid* proxy,
79 StreamTextureFactory* factory, 79 StreamTextureFactory* factory,
80 const scoped_refptr<base::MessageLoopProxy>& media_loop,
80 media::MediaLog* media_log); 81 media::MediaLog* media_log);
81 virtual ~WebMediaPlayerAndroid(); 82 virtual ~WebMediaPlayerAndroid();
82 83
83 // WebKit::WebMediaPlayer implementation. 84 // WebKit::WebMediaPlayer implementation.
84 virtual void enterFullscreen(); 85 virtual void enterFullscreen();
85 virtual void exitFullscreen(); 86 virtual void exitFullscreen();
86 virtual bool canEnterFullscreen() const; 87 virtual bool canEnterFullscreen() const;
87 88
88 // Resource loading. 89 // Resource loading.
89 virtual void load(const WebKit::WebURL& url, CORSMode cors_mode); 90 virtual void load(const WebKit::WebURL& url, CORSMode cors_mode);
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 296
296 // Size that has been sent to StreamTexture. 297 // Size that has been sent to StreamTexture.
297 WebKit::WebSize cached_stream_texture_size_; 298 WebKit::WebSize cached_stream_texture_size_;
298 299
299 // The video frame object used for rendering by the compositor. 300 // The video frame object used for rendering by the compositor.
300 scoped_refptr<media::VideoFrame> current_frame_; 301 scoped_refptr<media::VideoFrame> current_frame_;
301 302
302 // Message loop for main renderer thread. 303 // Message loop for main renderer thread.
303 const scoped_refptr<base::MessageLoopProxy> main_loop_; 304 const scoped_refptr<base::MessageLoopProxy> main_loop_;
304 305
306 // Message loop for media thread.
307 const scoped_refptr<base::MessageLoopProxy> media_loop_;
308
305 // URL of the media file to be fetched. 309 // URL of the media file to be fetched.
306 GURL url_; 310 GURL url_;
307 311
308 // Media duration. 312 // Media duration.
309 base::TimeDelta duration_; 313 base::TimeDelta duration_;
310 314
311 // Flag to remember if we have a trusted duration_ value provided by 315 // Flag to remember if we have a trusted duration_ value provided by
312 // MediaSourceDelegate notifying OnDurationChange(). In this case, ignore 316 // MediaSourceDelegate notifying OnDurationChange(). In this case, ignore
313 // any subsequent duration value passed to OnMediaMetadataChange(). 317 // any subsequent duration value passed to OnMediaMetadataChange().
314 bool ignore_metadata_duration_change_; 318 bool ignore_metadata_duration_change_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 424
421 // The decryptor that manages decryption keys and decrypts encrypted frames. 425 // The decryptor that manages decryption keys and decrypts encrypted frames.
422 scoped_ptr<ProxyDecryptor> decryptor_; 426 scoped_ptr<ProxyDecryptor> decryptor_;
423 427
424 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 428 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
425 }; 429 };
426 430
427 } // namespace content 431 } // namespace content
428 432
429 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 433 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698