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

Side by Side Diff: content/renderer/media/cdm/ppapi_decryptor.h

Issue 2625333003: media: Always provide CdmContext when selecting decoder in DecoderStream (Closed)
Patch Set: rebase only Created 3 years, 11 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
« no previous file with comments | « no previous file | content/renderer/media/cdm/ppapi_decryptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CDM_PPAPI_DECRYPTOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CDM_PPAPI_DECRYPTOR_H_
6 #define CONTENT_RENDERER_MEDIA_CDM_PPAPI_DECRYPTOR_H_ 6 #define CONTENT_RENDERER_MEDIA_CDM_PPAPI_DECRYPTOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/synchronization/lock.h"
16 #include "content/renderer/media/cdm/pepper_cdm_wrapper.h" 17 #include "content/renderer/media/cdm/pepper_cdm_wrapper.h"
17 #include "media/base/cdm_context.h" 18 #include "media/base/cdm_context.h"
18 #include "media/base/cdm_factory.h" 19 #include "media/base/cdm_factory.h"
19 #include "media/base/content_decryption_module.h" 20 #include "media/base/content_decryption_module.h"
20 #include "media/base/decryptor.h" 21 #include "media/base/decryptor.h"
21 #include "media/base/video_decoder_config.h" 22 #include "media/base/video_decoder_config.h"
22 23
23 class GURL; 24 class GURL;
24 25
25 namespace base { 26 namespace base {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 media::SessionKeysChangeCB session_keys_change_cb_; 142 media::SessionKeysChangeCB session_keys_change_cb_;
142 media::SessionExpirationUpdateCB session_expiration_update_cb_; 143 media::SessionExpirationUpdateCB session_expiration_update_cb_;
143 144
144 scoped_refptr<base::SingleThreadTaskRunner> render_task_runner_; 145 scoped_refptr<base::SingleThreadTaskRunner> render_task_runner_;
145 146
146 DecoderInitCB audio_decoder_init_cb_; 147 DecoderInitCB audio_decoder_init_cb_;
147 DecoderInitCB video_decoder_init_cb_; 148 DecoderInitCB video_decoder_init_cb_;
148 NewKeyCB new_audio_key_cb_; 149 NewKeyCB new_audio_key_cb_;
149 NewKeyCB new_video_key_cb_; 150 NewKeyCB new_video_key_cb_;
150 151
152 base::Lock lock_; // Protects |had_fatal_plugin_error_|.
153 bool had_fatal_plugin_error_ = false;
154
151 // NOTE: Weak pointers must be invalidated before all other member variables. 155 // NOTE: Weak pointers must be invalidated before all other member variables.
152 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; 156 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_;
153 157
154 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); 158 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor);
155 }; 159 };
156 160
157 } // namespace content 161 } // namespace content
158 162
159 #endif // CONTENT_RENDERER_MEDIA_CDM_PPAPI_DECRYPTOR_H_ 163 #endif // CONTENT_RENDERER_MEDIA_CDM_PPAPI_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/cdm/ppapi_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698