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

Side by Side Diff: media/crypto/aes_decryptor.h

Issue 10964055: Call Decryptor::Stop() in FFmpegVideoDecoder::Reset(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 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/base/mock_filters.h ('k') | media/crypto/aes_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CRYPTO_AES_DECRYPTOR_H_ 5 #ifndef MEDIA_CRYPTO_AES_DECRYPTOR_H_
6 #define MEDIA_CRYPTO_AES_DECRYPTOR_H_ 6 #define MEDIA_CRYPTO_AES_DECRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const uint8* init_data, 43 const uint8* init_data,
44 int init_data_length, 44 int init_data_length,
45 const std::string& session_id) OVERRIDE; 45 const std::string& session_id) OVERRIDE;
46 virtual void CancelKeyRequest(const std::string& key_system, 46 virtual void CancelKeyRequest(const std::string& key_system,
47 const std::string& session_id) OVERRIDE; 47 const std::string& session_id) OVERRIDE;
48 // Decrypts |encrypted| buffer. |encrypted| should not be NULL. Returns a 48 // Decrypts |encrypted| buffer. |encrypted| should not be NULL. Returns a
49 // DecoderBuffer with the decrypted data if the decryption succeeded through 49 // DecoderBuffer with the decrypted data if the decryption succeeded through
50 // |decrypt_cb|. 50 // |decrypt_cb|.
51 virtual void Decrypt(const scoped_refptr<DecoderBuffer>& encrypted, 51 virtual void Decrypt(const scoped_refptr<DecoderBuffer>& encrypted,
52 const DecryptCB& decrypt_cb) OVERRIDE; 52 const DecryptCB& decrypt_cb) OVERRIDE;
53 virtual void Stop() OVERRIDE; 53 virtual void CancelDecrypt() OVERRIDE;
54 54
55 private: 55 private:
56 // TODO(fgalligan): Remove this and change KeyMap to use crypto::SymmetricKey 56 // TODO(fgalligan): Remove this and change KeyMap to use crypto::SymmetricKey
57 // as there are no decryptors that are performing an integrity check. 57 // as there are no decryptors that are performing an integrity check.
58 // Helper class that manages the decryption key. 58 // Helper class that manages the decryption key.
59 class DecryptionKey { 59 class DecryptionKey {
60 public: 60 public:
61 explicit DecryptionKey(const std::string& secret); 61 explicit DecryptionKey(const std::string& secret);
62 ~DecryptionKey(); 62 ~DecryptionKey();
63 63
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 static uint32 next_session_id_; 99 static uint32 next_session_id_;
100 100
101 DecryptorClient* const client_; 101 DecryptorClient* const client_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(AesDecryptor); 103 DISALLOW_COPY_AND_ASSIGN(AesDecryptor);
104 }; 104 };
105 105
106 } // namespace media 106 } // namespace media
107 107
108 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_ 108 #endif // MEDIA_CRYPTO_AES_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/crypto/aes_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698