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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.h

Issue 105143010: Connect WebMediaPlayerImpl to WebContentDecryptionModuleImpl for EME WD (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player.
6 // It contains Pipeline which is the actual media player pipeline, it glues 6 // It contains Pipeline which is the actual media player pipeline, it glues
7 // the media player pipeline, data source, audio renderer and renderer. 7 // the media player pipeline, data source, audio renderer and renderer.
8 // Pipeline would creates multiple threads and access some public methods 8 // Pipeline would creates multiple threads and access some public methods
9 // of this class, so we need to be extra careful about concurrent access of 9 // of this class, so we need to be extra careful about concurrent access of
10 // methods and members. 10 // methods and members.
(...skipping 29 matching lines...) Expand all
40 #include "skia/ext/platform_canvas.h" 40 #include "skia/ext/platform_canvas.h"
41 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" 41 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h"
42 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 42 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
43 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 43 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
44 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" 44 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h"
45 #include "url/gurl.h" 45 #include "url/gurl.h"
46 46
47 class RenderAudioSourceProvider; 47 class RenderAudioSourceProvider;
48 48
49 namespace blink { 49 namespace blink {
50 class WebContentDecryptionModule;
50 class WebFrame; 51 class WebFrame;
51 } 52 }
52 53
53 namespace base { 54 namespace base {
54 class MessageLoopProxy; 55 class MessageLoopProxy;
55 } 56 }
56 57
57 namespace media { 58 namespace media {
58 class ChunkDemuxer; 59 class ChunkDemuxer;
59 class GpuVideoAcceleratorFactories; 60 class GpuVideoAcceleratorFactories;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const unsigned char* key, 169 const unsigned char* key,
169 unsigned key_length, 170 unsigned key_length,
170 const unsigned char* init_data, 171 const unsigned char* init_data,
171 unsigned init_data_length, 172 unsigned init_data_length,
172 const blink::WebString& session_id); 173 const blink::WebString& session_id);
173 174
174 virtual MediaKeyException cancelKeyRequest( 175 virtual MediaKeyException cancelKeyRequest(
175 const blink::WebString& key_system, 176 const blink::WebString& key_system,
176 const blink::WebString& session_id); 177 const blink::WebString& session_id);
177 178
179 virtual void mediaKeysChanged(blink::WebContentDecryptionModule* cdm);
180
178 // content::RenderViewObserver implementation. 181 // content::RenderViewObserver implementation.
179 virtual void OnDestruct() OVERRIDE; 182 virtual void OnDestruct() OVERRIDE;
180 183
181 void Repaint(); 184 void Repaint();
182 185
183 void OnPipelineSeek(media::PipelineStatus status); 186 void OnPipelineSeek(media::PipelineStatus status);
184 void OnPipelineEnded(); 187 void OnPipelineEnded();
185 void OnPipelineError(media::PipelineStatus error); 188 void OnPipelineError(media::PipelineStatus error);
186 void OnPipelineBufferingState( 189 void OnPipelineBufferingState(
187 media::Pipeline::BufferingState buffering_state); 190 media::Pipeline::BufferingState buffering_state);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // playback. 369 // playback.
367 scoped_ptr<webkit::WebLayerImpl> video_weblayer_; 370 scoped_ptr<webkit::WebLayerImpl> video_weblayer_;
368 371
369 // A pointer back to the compositor to inform it about state changes. This is 372 // A pointer back to the compositor to inform it about state changes. This is
370 // not NULL while the compositor is actively using this webmediaplayer. 373 // not NULL while the compositor is actively using this webmediaplayer.
371 cc::VideoFrameProvider::Client* video_frame_provider_client_; 374 cc::VideoFrameProvider::Client* video_frame_provider_client_;
372 375
373 // Text track objects get a unique index value when they're created. 376 // Text track objects get a unique index value when they're created.
374 int text_track_index_; 377 int text_track_index_;
375 378
379 // Non-owned pointer to the CDM. Determined at initialization, but can be
380 // updated via calls to mediaKeysChanged().
381 blink::WebContentDecryptionModule* cdm_;
382
376 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 383 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
377 }; 384 };
378 385
379 } // namespace content 386 } // namespace content
380 387
381 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 388 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_impl.cc » ('j') | content/renderer/media/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698