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

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

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 namespace WebKit { 36 namespace WebKit {
37 class WebFrame; 37 class WebFrame;
38 } 38 }
39 39
40 namespace webkit { 40 namespace webkit {
41 class WebLayerImpl; 41 class WebLayerImpl;
42 } 42 }
43 43
44 namespace webkit_media { 44 namespace content {
45 class WebMediaPlayerDelegate; 45 class WebMediaPlayerDelegate;
46 46
47 #if defined(GOOGLE_TV) 47 #if defined(GOOGLE_TV)
48 class MediaStreamAudioRenderer; 48 class MediaStreamAudioRenderer;
49 class MediaStreamClient; 49 class MediaStreamClient;
50 #endif 50 #endif
51 } 51 }
52 52
53 namespace content { 53 namespace content {
54 54
(...skipping 13 matching lines...) Expand all
68 // Construct a WebMediaPlayerAndroid object. This class communicates 68 // Construct a WebMediaPlayerAndroid object. This class communicates
69 // with the MediaPlayerAndroid object in the browser process through 69 // with the MediaPlayerAndroid object in the browser process through
70 // |proxy|. 70 // |proxy|.
71 // TODO(qinmin): |frame| argument is used to determine whether the current 71 // TODO(qinmin): |frame| argument is used to determine whether the current
72 // player can enter fullscreen. This logic should probably be moved into 72 // player can enter fullscreen. This logic should probably be moved into
73 // blink, so that enterFullscreen() will not be called if another video is 73 // blink, so that enterFullscreen() will not be called if another video is
74 // already in fullscreen. 74 // already in fullscreen.
75 WebMediaPlayerAndroid( 75 WebMediaPlayerAndroid(
76 WebKit::WebFrame* frame, 76 WebKit::WebFrame* frame,
77 WebKit::WebMediaPlayerClient* client, 77 WebKit::WebMediaPlayerClient* client,
78 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate, 78 base::WeakPtr<WebMediaPlayerDelegate> delegate,
79 WebMediaPlayerManagerAndroid* manager, 79 WebMediaPlayerManagerAndroid* manager,
80 WebMediaPlayerProxyAndroid* proxy, 80 WebMediaPlayerProxyAndroid* proxy,
81 StreamTextureFactory* factory, 81 StreamTextureFactory* factory,
82 media::MediaLog* media_log); 82 media::MediaLog* media_log);
83 virtual ~WebMediaPlayerAndroid(); 83 virtual ~WebMediaPlayerAndroid();
84 84
85 // WebKit::WebMediaPlayer implementation. 85 // WebKit::WebMediaPlayer implementation.
86 virtual void enterFullscreen(); 86 virtual void enterFullscreen();
87 virtual void exitFullscreen(); 87 virtual void exitFullscreen();
88 virtual bool canEnterFullscreen() const; 88 virtual bool canEnterFullscreen() const;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 WebKit::WebFrame* const frame_; 281 WebKit::WebFrame* const frame_;
282 282
283 WebKit::WebMediaPlayerClient* const client_; 283 WebKit::WebMediaPlayerClient* const client_;
284 284
285 // |delegate_| is used to notify the browser process of the player status, so 285 // |delegate_| is used to notify the browser process of the player status, so
286 // that the browser process can control screen locks. 286 // that the browser process can control screen locks.
287 // TODO(qinmin): Currently android mediaplayer takes care of the screen 287 // TODO(qinmin): Currently android mediaplayer takes care of the screen
288 // lock. So this is only used for media source. Will apply this to regular 288 // lock. So this is only used for media source. Will apply this to regular
289 // media tag once http://crbug.com/247892 is fixed. 289 // media tag once http://crbug.com/247892 is fixed.
290 base::WeakPtr<webkit_media::WebMediaPlayerDelegate> delegate_; 290 base::WeakPtr<WebMediaPlayerDelegate> delegate_;
291 291
292 // Save the list of buffered time ranges. 292 // Save the list of buffered time ranges.
293 WebKit::WebTimeRanges buffered_; 293 WebKit::WebTimeRanges buffered_;
294 294
295 // Size of the video. 295 // Size of the video.
296 WebKit::WebSize natural_size_; 296 WebKit::WebSize natural_size_;
297 297
298 // Size that has been sent to StreamTexture. 298 // Size that has been sent to StreamTexture.
299 WebKit::WebSize cached_stream_texture_size_; 299 WebKit::WebSize cached_stream_texture_size_;
300 300
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 422
423 // The decryptor that manages decryption keys and decrypts encrypted frames. 423 // The decryptor that manages decryption keys and decrypts encrypted frames.
424 scoped_ptr<webkit_media::ProxyDecryptor> decryptor_; 424 scoped_ptr<webkit_media::ProxyDecryptor> decryptor_;
425 425
426 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 426 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
427 }; 427 };
428 428
429 } // namespace content 429 } // namespace content
430 430
431 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 431 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698