| 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_CRYPTO_PPAPI_DECRYPTOR_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const media::SessionMessageCB& session_message_cb, | 36 const media::SessionMessageCB& session_message_cb, |
| 37 const media::SessionReadyCB& session_ready_cb, | 37 const media::SessionReadyCB& session_ready_cb, |
| 38 const media::SessionClosedCB& session_closed_cb, | 38 const media::SessionClosedCB& session_closed_cb, |
| 39 const media::SessionErrorCB& session_error_cb, | 39 const media::SessionErrorCB& session_error_cb, |
| 40 const base::Closure& destroy_plugin_cb); | 40 const base::Closure& destroy_plugin_cb); |
| 41 | 41 |
| 42 virtual ~PpapiDecryptor(); | 42 virtual ~PpapiDecryptor(); |
| 43 | 43 |
| 44 // media::MediaKeys implementation. | 44 // media::MediaKeys implementation. |
| 45 virtual bool CreateSession(uint32 session_id, | 45 virtual bool CreateSession(uint32 session_id, |
| 46 const std::string& type, | 46 const std::string& content_type, |
| 47 const uint8* init_data, | 47 const uint8* init_data, |
| 48 int init_data_length) OVERRIDE; | 48 int init_data_length) OVERRIDE; |
| 49 virtual void LoadSession(uint32 session_id, |
| 50 const std::string& web_session_id) OVERRIDE; |
| 49 virtual void UpdateSession(uint32 session_id, | 51 virtual void UpdateSession(uint32 session_id, |
| 50 const uint8* response, | 52 const uint8* response, |
| 51 int response_length) OVERRIDE; | 53 int response_length) OVERRIDE; |
| 52 virtual void ReleaseSession(uint32 session_id) OVERRIDE; | 54 virtual void ReleaseSession(uint32 session_id) OVERRIDE; |
| 53 virtual Decryptor* GetDecryptor() OVERRIDE; | 55 virtual Decryptor* GetDecryptor() OVERRIDE; |
| 54 | 56 |
| 55 // media::Decryptor implementation. | 57 // media::Decryptor implementation. |
| 56 virtual void RegisterNewKeyCB(StreamType stream_type, | 58 virtual void RegisterNewKeyCB(StreamType stream_type, |
| 57 const NewKeyCB& key_added_cb) OVERRIDE; | 59 const NewKeyCB& key_added_cb) OVERRIDE; |
| 58 virtual void Decrypt(StreamType stream_type, | 60 virtual void Decrypt(StreamType stream_type, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 NewKeyCB new_video_key_cb_; | 132 NewKeyCB new_video_key_cb_; |
| 131 | 133 |
| 132 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; | 134 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; |
| 133 | 135 |
| 134 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); | 136 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); |
| 135 }; | 137 }; |
| 136 | 138 |
| 137 } // namespace content | 139 } // namespace content |
| 138 | 140 |
| 139 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ | 141 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ |
| OLD | NEW |