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

Side by Side Diff: webkit/renderer/media/crypto/ppapi_decryptor.h

Issue 17381007: EME: ProxyDecryptor creates MediaKeys instead of Decryptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 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 | Annotate | Revision Log
« no previous file with comments | « media/crypto/aes_decryptor.cc ('k') | webkit/renderer/media/crypto/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 WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 5 #ifndef WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual ~PpapiDecryptor(); 44 virtual ~PpapiDecryptor();
45 45
46 // media::MediaKeys implementation. 46 // media::MediaKeys implementation.
47 virtual bool GenerateKeyRequest(const std::string& type, 47 virtual bool GenerateKeyRequest(const std::string& type,
48 const uint8* init_data, 48 const uint8* init_data,
49 int init_data_length) OVERRIDE; 49 int init_data_length) OVERRIDE;
50 virtual void AddKey(const uint8* key, int key_length, 50 virtual void AddKey(const uint8* key, int key_length,
51 const uint8* init_data, int init_data_length, 51 const uint8* init_data, int init_data_length,
52 const std::string& session_id) OVERRIDE; 52 const std::string& session_id) OVERRIDE;
53 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE; 53 virtual void CancelKeyRequest(const std::string& session_id) OVERRIDE;
54 virtual Decryptor* GetDecryptor() OVERRIDE;
54 55
55 // media::Decryptor implementation. 56 // media::Decryptor implementation.
56 virtual media::MediaKeys* GetMediaKeys() OVERRIDE;
57 virtual void RegisterNewKeyCB(StreamType stream_type, 57 virtual void RegisterNewKeyCB(StreamType stream_type,
58 const NewKeyCB& key_added_cb) OVERRIDE; 58 const NewKeyCB& key_added_cb) OVERRIDE;
59 virtual void Decrypt(StreamType stream_type, 59 virtual void Decrypt(StreamType stream_type,
60 const scoped_refptr<media::DecoderBuffer>& encrypted, 60 const scoped_refptr<media::DecoderBuffer>& encrypted,
61 const DecryptCB& decrypt_cb) OVERRIDE; 61 const DecryptCB& decrypt_cb) OVERRIDE;
62 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE; 62 virtual void CancelDecrypt(StreamType stream_type) OVERRIDE;
63 virtual void InitializeAudioDecoder(const media::AudioDecoderConfig& config, 63 virtual void InitializeAudioDecoder(const media::AudioDecoderConfig& config,
64 const DecoderInitCB& init_cb) OVERRIDE; 64 const DecoderInitCB& init_cb) OVERRIDE;
65 virtual void InitializeVideoDecoder(const media::VideoDecoderConfig& config, 65 virtual void InitializeVideoDecoder(const media::VideoDecoderConfig& config,
66 const DecoderInitCB& init_cb) OVERRIDE; 66 const DecoderInitCB& init_cb) OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; 125 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_;
126 base::WeakPtr<PpapiDecryptor> weak_this_; 126 base::WeakPtr<PpapiDecryptor> weak_this_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); 128 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor);
129 }; 129 };
130 130
131 } // namespace webkit_media 131 } // namespace webkit_media
132 132
133 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 133 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/crypto/aes_decryptor.cc ('k') | webkit/renderer/media/crypto/ppapi_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698