OLD | NEW |
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> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "media/base/video_decoder_config.h" | 21 #include "media/base/video_decoder_config.h" |
22 | 22 |
23 class GURL; | 23 class GURL; |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class SingleThreadTaskRunner; | 26 class SingleThreadTaskRunner; |
27 } | 27 } |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 class ContentDecryptorDelegate; | 30 class ContentDecryptorDelegate; |
31 class PepperPluginInstanceImpl; | |
32 | 31 |
33 // PpapiDecryptor implements media::MediaKeys and media::Decryptor and forwards | 32 // PpapiDecryptor implements media::MediaKeys and media::Decryptor and forwards |
34 // all calls to the PluginInstance. | 33 // all calls to the PluginInstance. |
35 // This class should always be created & destroyed on the main renderer thread. | 34 // This class should always be created & destroyed on the main renderer thread. |
36 class PpapiDecryptor : public media::MediaKeys, | 35 class PpapiDecryptor : public media::MediaKeys, |
37 public media::CdmContext, | 36 public media::CdmContext, |
38 public media::Decryptor { | 37 public media::Decryptor { |
39 public: | 38 public: |
40 static void Create( | 39 static void Create( |
41 const std::string& key_system, | 40 const std::string& key_system, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 150 |
152 // NOTE: Weak pointers must be invalidated before all other member variables. | 151 // NOTE: Weak pointers must be invalidated before all other member variables. |
153 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; | 152 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; |
154 | 153 |
155 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); | 154 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); |
156 }; | 155 }; |
157 | 156 |
158 } // namespace content | 157 } // namespace content |
159 | 158 |
160 #endif // CONTENT_RENDERER_MEDIA_CDM_PPAPI_DECRYPTOR_H_ | 159 #endif // CONTENT_RENDERER_MEDIA_CDM_PPAPI_DECRYPTOR_H_ |
OLD | NEW |