| 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 30 matching lines...) Expand all Loading... |
| 41 // |plugin_decryption_interface|. Therefore |plugin_decryption_interface| | 41 // |plugin_decryption_interface|. Therefore |plugin_decryption_interface| |
| 42 // must outlive this object. | 42 // must outlive this object. |
| 43 ContentDecryptorDelegate( | 43 ContentDecryptorDelegate( |
| 44 PP_Instance pp_instance, | 44 PP_Instance pp_instance, |
| 45 const PPP_ContentDecryptor_Private* plugin_decryption_interface); | 45 const PPP_ContentDecryptor_Private* plugin_decryption_interface); |
| 46 ~ContentDecryptorDelegate(); | 46 ~ContentDecryptorDelegate(); |
| 47 | 47 |
| 48 // This object should not be accessed after |fatal_plugin_error_cb| is called. | 48 // This object should not be accessed after |fatal_plugin_error_cb| is called. |
| 49 void Initialize( | 49 void Initialize( |
| 50 const std::string& key_system, | 50 const std::string& key_system, |
| 51 bool allow_distinctive_identifier, |
| 52 bool allow_persistent_state, |
| 51 const media::SessionMessageCB& session_message_cb, | 53 const media::SessionMessageCB& session_message_cb, |
| 52 const media::SessionClosedCB& session_closed_cb, | 54 const media::SessionClosedCB& session_closed_cb, |
| 53 const media::SessionErrorCB& session_error_cb, | 55 const media::SessionErrorCB& session_error_cb, |
| 54 const media::SessionKeysChangeCB& session_keys_change_cb, | 56 const media::SessionKeysChangeCB& session_keys_change_cb, |
| 55 const media::SessionExpirationUpdateCB& session_expiration_update_cb, | 57 const media::SessionExpirationUpdateCB& session_expiration_update_cb, |
| 56 const base::Closure& fatal_plugin_error_cb); | 58 const base::Closure& fatal_plugin_error_cb); |
| 57 | 59 |
| 58 void InstanceCrashed(); | 60 void InstanceCrashed(); |
| 59 | 61 |
| 60 // Provides access to PPP_ContentDecryptor_Private. | 62 // Provides access to PPP_ContentDecryptor_Private. |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 247 |
| 246 base::WeakPtr<ContentDecryptorDelegate> weak_this_; | 248 base::WeakPtr<ContentDecryptorDelegate> weak_this_; |
| 247 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; | 249 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; |
| 248 | 250 |
| 249 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); | 251 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); |
| 250 }; | 252 }; |
| 251 | 253 |
| 252 } // namespace content | 254 } // namespace content |
| 253 | 255 |
| 254 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 256 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
| OLD | NEW |