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

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

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 namespace gpu { 44 namespace gpu {
45 struct MailboxHolder; 45 struct MailboxHolder;
46 } 46 }
47 47
48 namespace media { 48 namespace media {
49 class MediaLog; 49 class MediaLog;
50 } 50 }
51 51
52 namespace webkit {
53 class WebLayerImpl;
54 }
55
56 namespace content { 52 namespace content {
57 class RendererCdmManager; 53 class RendererCdmManager;
58 class RendererMediaPlayerManager; 54 class RendererMediaPlayerManager;
59 class WebContentDecryptionModuleImpl; 55 class WebContentDecryptionModuleImpl;
56 class WebLayerImpl;
60 class WebMediaPlayerDelegate; 57 class WebMediaPlayerDelegate;
61 58
62 // This class implements blink::WebMediaPlayer by keeping the android 59 // This class implements blink::WebMediaPlayer by keeping the android
63 // media player in the browser process. It listens to all the status changes 60 // media player in the browser process. It listens to all the status changes
64 // sent from the browser process and sends playback controls to the media 61 // sent from the browser process and sends playback controls to the media
65 // player. 62 // player.
66 class WebMediaPlayerAndroid : public blink::WebMediaPlayer, 63 class WebMediaPlayerAndroid : public blink::WebMediaPlayer,
67 public cc::VideoFrameProvider, 64 public cc::VideoFrameProvider,
68 public RenderFrameObserver { 65 public RenderFrameObserver {
69 public: 66 public:
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 ScopedStreamTextureProxy stream_texture_proxy_; 382 ScopedStreamTextureProxy stream_texture_proxy_;
386 383
387 // Whether media player needs external surface. 384 // Whether media player needs external surface.
388 // Only used for the VIDEO_HOLE logic. 385 // Only used for the VIDEO_HOLE logic.
389 bool needs_external_surface_; 386 bool needs_external_surface_;
390 387
391 // A pointer back to the compositor to inform it about state changes. This is 388 // A pointer back to the compositor to inform it about state changes. This is
392 // not NULL while the compositor is actively using this webmediaplayer. 389 // not NULL while the compositor is actively using this webmediaplayer.
393 cc::VideoFrameProvider::Client* video_frame_provider_client_; 390 cc::VideoFrameProvider::Client* video_frame_provider_client_;
394 391
395 scoped_ptr<webkit::WebLayerImpl> video_weblayer_; 392 scoped_ptr<WebLayerImpl> video_weblayer_;
396 393
397 #if defined(VIDEO_HOLE) 394 #if defined(VIDEO_HOLE)
398 // A rectangle represents the geometry of video frame, when computed last 395 // A rectangle represents the geometry of video frame, when computed last
399 // time. 396 // time.
400 gfx::RectF last_computed_rect_; 397 gfx::RectF last_computed_rect_;
401 398
402 // Whether to use the video overlay for all embedded video. 399 // Whether to use the video overlay for all embedded video.
403 // True only for testing. 400 // True only for testing.
404 bool force_use_overlay_embedded_video_; 401 bool force_use_overlay_embedded_video_;
405 #endif // defined(VIDEO_HOLE) 402 #endif // defined(VIDEO_HOLE)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 445
449 // NOTE: Weak pointers must be invalidated before all other member variables. 446 // NOTE: Weak pointers must be invalidated before all other member variables.
450 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 447 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
451 448
452 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 449 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
453 }; 450 };
454 451
455 } // namespace content 452 } // namespace content
456 453
457 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 454 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698