| 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 PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
| 6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class ContentDecryptor_Private { | 27 class ContentDecryptor_Private { |
| 28 public: | 28 public: |
| 29 explicit ContentDecryptor_Private(Instance* instance); | 29 explicit ContentDecryptor_Private(Instance* instance); |
| 30 virtual ~ContentDecryptor_Private(); | 30 virtual ~ContentDecryptor_Private(); |
| 31 | 31 |
| 32 // PPP_ContentDecryptor_Private functions exposed as virtual functions | 32 // PPP_ContentDecryptor_Private functions exposed as virtual functions |
| 33 // for you to override. | 33 // for you to override. |
| 34 // TODO(tomfinegan): This could be optimized to pass pp::Var instead of | 34 // TODO(tomfinegan): This could be optimized to pass pp::Var instead of |
| 35 // strings. The change would allow the CDM wrapper to reuse vars when | 35 // strings. The change would allow the CDM wrapper to reuse vars when |
| 36 // replying to the browser. | 36 // replying to the browser. |
| 37 virtual void Initialize(const std::string& key_system) = 0; | 37 virtual void Initialize(const std::string& key_system, |
| 38 bool allow_distinctive_identifier, |
| 39 bool allow_persistent_state) = 0; |
| 38 virtual void SetServerCertificate(uint32_t promise_id, | 40 virtual void SetServerCertificate(uint32_t promise_id, |
| 39 pp::VarArrayBuffer server_certificate) = 0; | 41 pp::VarArrayBuffer server_certificate) = 0; |
| 40 virtual void CreateSessionAndGenerateRequest( | 42 virtual void CreateSessionAndGenerateRequest( |
| 41 uint32_t promise_id, | 43 uint32_t promise_id, |
| 42 PP_SessionType session_type, | 44 PP_SessionType session_type, |
| 43 const std::string& init_data_type, | 45 const std::string& init_data_type, |
| 44 pp::VarArrayBuffer init_data) = 0; | 46 pp::VarArrayBuffer init_data) = 0; |
| 45 virtual void LoadSession(uint32_t promise_id, | 47 virtual void LoadSession(uint32_t promise_id, |
| 46 PP_SessionType session_type, | 48 PP_SessionType session_type, |
| 47 const std::string& session_id) = 0; | 49 const std::string& session_id) = 0; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 void DeliverSamples(pp::Buffer_Dev audio_frames, | 122 void DeliverSamples(pp::Buffer_Dev audio_frames, |
| 121 const PP_DecryptedSampleInfo& decrypted_sample_info); | 123 const PP_DecryptedSampleInfo& decrypted_sample_info); |
| 122 | 124 |
| 123 private: | 125 private: |
| 124 InstanceHandle associated_instance_; | 126 InstanceHandle associated_instance_; |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 } // namespace pp | 129 } // namespace pp |
| 128 | 130 |
| 129 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ | 131 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ |
| OLD | NEW |