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 <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // This object should not be accessed after |fatal_plugin_error_cb| is called. | 49 // This object should not be accessed after |fatal_plugin_error_cb| is called. |
50 void Initialize( | 50 void Initialize( |
51 const std::string& key_system, | 51 const std::string& key_system, |
52 bool allow_distinctive_identifier, | 52 bool allow_distinctive_identifier, |
53 bool allow_persistent_state, | 53 bool allow_persistent_state, |
54 const media::SessionMessageCB& session_message_cb, | 54 const media::SessionMessageCB& session_message_cb, |
55 const media::SessionClosedCB& session_closed_cb, | 55 const media::SessionClosedCB& session_closed_cb, |
56 const media::LegacySessionErrorCB& legacy_session_error_cb, | 56 const media::LegacySessionErrorCB& legacy_session_error_cb, |
57 const media::SessionKeysChangeCB& session_keys_change_cb, | 57 const media::SessionKeysChangeCB& session_keys_change_cb, |
58 const media::SessionExpirationUpdateCB& session_expiration_update_cb, | 58 const media::SessionExpirationUpdateCB& session_expiration_update_cb, |
59 const base::Closure& fatal_plugin_error_cb); | 59 const base::Closure& fatal_plugin_error_cb, |
| 60 scoped_ptr<media::SimpleCdmPromise> promise); |
60 | 61 |
61 void InstanceCrashed(); | 62 void InstanceCrashed(); |
62 | 63 |
63 // Provides access to PPP_ContentDecryptor_Private. | 64 // Provides access to PPP_ContentDecryptor_Private. |
64 void SetServerCertificate(const std::vector<uint8_t>& certificate, | 65 void SetServerCertificate(const std::vector<uint8_t>& certificate, |
65 scoped_ptr<media::SimpleCdmPromise> promise); | 66 scoped_ptr<media::SimpleCdmPromise> promise); |
66 void CreateSessionAndGenerateRequest( | 67 void CreateSessionAndGenerateRequest( |
67 media::MediaKeys::SessionType session_type, | 68 media::MediaKeys::SessionType session_type, |
68 media::EmeInitDataType init_data_type, | 69 media::EmeInitDataType init_data_type, |
69 const std::vector<uint8_t>& init_data, | 70 const std::vector<uint8_t>& init_data, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 246 |
246 base::WeakPtr<ContentDecryptorDelegate> weak_this_; | 247 base::WeakPtr<ContentDecryptorDelegate> weak_this_; |
247 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; | 248 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; |
248 | 249 |
249 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); | 250 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); |
250 }; | 251 }; |
251 | 252 |
252 } // namespace content | 253 } // namespace content |
253 | 254 |
254 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 255 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
OLD | NEW |