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

Side by Side Diff: media/renderers/video_renderer_impl.h

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android changes Created 5 years, 9 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 MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // VideoRenderer implementation. 54 // VideoRenderer implementation.
55 void Initialize(DemuxerStream* stream, 55 void Initialize(DemuxerStream* stream,
56 const PipelineStatusCB& init_cb, 56 const PipelineStatusCB& init_cb,
57 const SetDecryptorReadyCB& set_decryptor_ready_cb, 57 const SetDecryptorReadyCB& set_decryptor_ready_cb,
58 const StatisticsCB& statistics_cb, 58 const StatisticsCB& statistics_cb,
59 const BufferingStateCB& buffering_state_cb, 59 const BufferingStateCB& buffering_state_cb,
60 const PaintCB& paint_cb, 60 const PaintCB& paint_cb,
61 const base::Closure& ended_cb, 61 const base::Closure& ended_cb,
62 const PipelineStatusCB& error_cb, 62 const PipelineStatusCB& error_cb,
63 const TimeDeltaCB& get_time_cb) override; 63 const TimeDeltaCB& get_time_cb,
64 const base::Closure& waiting_for_decryption_key_cb) override;
64 void Flush(const base::Closure& callback) override; 65 void Flush(const base::Closure& callback) override;
65 void StartPlayingFrom(base::TimeDelta timestamp) override; 66 void StartPlayingFrom(base::TimeDelta timestamp) override;
66 67
67 // PlatformThread::Delegate implementation. 68 // PlatformThread::Delegate implementation.
68 void ThreadMain() override; 69 void ThreadMain() override;
69 70
70 private: 71 private:
71 // Creates a dedicated |thread_| for video rendering. 72 // Creates a dedicated |thread_| for video rendering.
72 void CreateVideoThread(); 73 void CreateVideoThread();
73 74
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 207
207 // NOTE: Weak pointers must be invalidated before all other member variables. 208 // NOTE: Weak pointers must be invalidated before all other member variables.
208 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; 209 base::WeakPtrFactory<VideoRendererImpl> weak_factory_;
209 210
210 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); 211 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl);
211 }; 212 };
212 213
213 } // namespace media 214 } // namespace media
214 215
215 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 216 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698