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

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

Issue 135863004: Downloads and passes the poster image to Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 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 23 matching lines...) Expand all
34 namespace base { 34 namespace base {
35 class MessageLoopProxy; 35 class MessageLoopProxy;
36 } 36 }
37 37
38 namespace media { 38 namespace media {
39 class MediaLog; 39 class MediaLog;
40 } 40 }
41 41
42 namespace blink { 42 namespace blink {
43 class WebFrame; 43 class WebFrame;
44 class WebURL;
44 } 45 }
45 46
46 namespace webkit { 47 namespace webkit {
47 class WebLayerImpl; 48 class WebLayerImpl;
48 } 49 }
49 50
50 namespace content { 51 namespace content {
51 class WebMediaPlayerDelegate; 52 class WebMediaPlayerDelegate;
52 class RendererMediaPlayerManager; 53 class RendererMediaPlayerManager;
53 54
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Playback controls. 90 // Playback controls.
90 virtual void play(); 91 virtual void play();
91 virtual void pause(); 92 virtual void pause();
92 virtual void seek(double seconds); 93 virtual void seek(double seconds);
93 virtual bool supportsSave() const; 94 virtual bool supportsSave() const;
94 virtual void setRate(double rate); 95 virtual void setRate(double rate);
95 virtual void setVolume(double volume); 96 virtual void setVolume(double volume);
96 virtual const blink::WebTimeRanges& buffered(); 97 virtual const blink::WebTimeRanges& buffered();
97 virtual double maxTimeSeekable() const; 98 virtual double maxTimeSeekable() const;
98 99
100 // Poster image, as defined in the <video> element.
101 virtual void setPoster(const blink::WebURL& poster) OVERRIDE;
102
99 // Methods for painting. 103 // Methods for painting.
100 virtual void paint(blink::WebCanvas* canvas, 104 virtual void paint(blink::WebCanvas* canvas,
101 const blink::WebRect& rect, 105 const blink::WebRect& rect,
102 unsigned char alpha); 106 unsigned char alpha);
103 107
104 virtual bool copyVideoTextureToPlatformTexture( 108 virtual bool copyVideoTextureToPlatformTexture(
105 blink::WebGraphicsContext3D* web_graphics_context, 109 blink::WebGraphicsContext3D* web_graphics_context,
106 unsigned int texture, 110 unsigned int texture,
107 unsigned int level, 111 unsigned int level,
108 unsigned int internal_format, 112 unsigned int internal_format,
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool is_remote_; 421 bool is_remote_;
418 422
419 media::MediaLog* media_log_; 423 media::MediaLog* media_log_;
420 424
421 scoped_ptr<MediaInfoLoader> info_loader_; 425 scoped_ptr<MediaInfoLoader> info_loader_;
422 426
423 // The currently selected key system. Empty string means that no key system 427 // The currently selected key system. Empty string means that no key system
424 // has been selected. 428 // has been selected.
425 blink::WebString current_key_system_; 429 blink::WebString current_key_system_;
426 430
431 blink::WebURL poster_url_;
432
427 // Temporary for EME v0.1. In the future the init data type should be passed 433 // Temporary for EME v0.1. In the future the init data type should be passed
428 // through GenerateKeyRequest() directly from WebKit. 434 // through GenerateKeyRequest() directly from WebKit.
429 std::string init_data_type_; 435 std::string init_data_type_;
430 436
431 media::DecryptorReadyCB decryptor_ready_cb_; 437 media::DecryptorReadyCB decryptor_ready_cb_;
432 438
433 // Manages decryption keys and decrypts encrypted frames. 439 // Manages decryption keys and decrypts encrypted frames.
434 scoped_ptr<ProxyDecryptor> proxy_decryptor_; 440 scoped_ptr<ProxyDecryptor> proxy_decryptor_;
435 441
436 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 442 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
437 443
438 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 444 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
439 }; 445 };
440 446
441 } // namespace content 447 } // namespace content
442 448
443 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 449 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698