OLD | NEW |
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 CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const media::SessionMessageCB& session_message_cb, | 46 const media::SessionMessageCB& session_message_cb, |
47 const media::SessionReadyCB& session_ready_cb, | 47 const media::SessionReadyCB& session_ready_cb, |
48 const media::SessionClosedCB& session_closed_cb, | 48 const media::SessionClosedCB& session_closed_cb, |
49 const media::SessionErrorCB& session_error_cb, | 49 const media::SessionErrorCB& session_error_cb, |
50 const base::Closure& fatal_plugin_error_cb); | 50 const base::Closure& fatal_plugin_error_cb); |
51 | 51 |
52 void InstanceCrashed(); | 52 void InstanceCrashed(); |
53 | 53 |
54 // Provides access to PPP_ContentDecryptor_Private. | 54 // Provides access to PPP_ContentDecryptor_Private. |
55 bool CreateSession(uint32 session_id, | 55 bool CreateSession(uint32 session_id, |
56 const std::string& type, | 56 const std::string& content_type, |
57 const uint8* init_data, | 57 const uint8* init_data, |
58 int init_data_length); | 58 int init_data_length); |
| 59 void LoadSession(uint32 session_id, const std::string& web_session_id); |
59 bool UpdateSession(uint32 session_id, | 60 bool UpdateSession(uint32 session_id, |
60 const uint8* response, | 61 const uint8* response, |
61 int response_length); | 62 int response_length); |
62 bool ReleaseSession(uint32 session_id); | 63 bool ReleaseSession(uint32 session_id); |
63 bool Decrypt(media::Decryptor::StreamType stream_type, | 64 bool Decrypt(media::Decryptor::StreamType stream_type, |
64 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, | 65 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, |
65 const media::Decryptor::DecryptCB& decrypt_cb); | 66 const media::Decryptor::DecryptCB& decrypt_cb); |
66 bool CancelDecrypt(media::Decryptor::StreamType stream_type); | 67 bool CancelDecrypt(media::Decryptor::StreamType stream_type); |
67 bool InitializeAudioDecoder( | 68 bool InitializeAudioDecoder( |
68 const media::AudioDecoderConfig& decoder_config, | 69 const media::AudioDecoderConfig& decoder_config, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 214 |
214 base::WeakPtr<ContentDecryptorDelegate> weak_this_; | 215 base::WeakPtr<ContentDecryptorDelegate> weak_this_; |
215 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; | 216 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; |
216 | 217 |
217 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); | 218 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); |
218 }; | 219 }; |
219 | 220 |
220 } // namespace content | 221 } // namespace content |
221 | 222 |
222 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 223 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
OLD | NEW |