| 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 WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 5 #ifndef WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
| 6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 6 #define WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual ~Client(); | 78 virtual ~Client(); |
| 79 | 79 |
| 80 Status status() { return status_; } | 80 Status status() { return status_; } |
| 81 const std::string& session_id() { return session_id_; } | 81 const std::string& session_id() { return session_id_; } |
| 82 const std::string& key_message() { return key_message_; } | 82 const std::string& key_message() { return key_message_; } |
| 83 const std::string& default_url() { return default_url_; } | 83 const std::string& default_url() { return default_url_; } |
| 84 | 84 |
| 85 // Resets the Client to a clean state. | 85 // Resets the Client to a clean state. |
| 86 void Reset(); | 86 void Reset(); |
| 87 | 87 |
| 88 void KeyAdded(const std::string& key_system, const std::string& session_id); | 88 void KeyAdded(const std::string& session_id); |
| 89 void KeyError(const std::string& key_system, | 89 void KeyError(const std::string& session_id, |
| 90 const std::string& session_id, | |
| 91 media::MediaKeys::KeyError error_code, | 90 media::MediaKeys::KeyError error_code, |
| 92 int system_code); | 91 int system_code); |
| 93 void KeyMessage(const std::string& key_system, | 92 void KeyMessage(const std::string& session_id, |
| 94 const std::string& session_id, | |
| 95 const std::string& message, | 93 const std::string& message, |
| 96 const std::string& default_url); | 94 const std::string& default_url); |
| 97 void NeedKey(const std::string& key_system, | 95 void NeedKey(const std::string& session_id, |
| 98 const std::string& session_id, | |
| 99 const std::string& type, | 96 const std::string& type, |
| 100 scoped_ptr<uint8[]> init_data, int init_data_length); | 97 scoped_ptr<uint8[]> init_data, int init_data_length); |
| 101 | 98 |
| 102 private: | 99 private: |
| 103 Status status_; | 100 Status status_; |
| 104 std::string session_id_; | 101 std::string session_id_; |
| 105 std::string key_message_; | 102 std::string key_message_; |
| 106 std::string default_url_; | 103 std::string default_url_; |
| 107 }; | 104 }; |
| 108 | 105 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER | 164 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER |
| 168 | 165 |
| 169 scoped_ptr<CdmVideoDecoder> video_decoder_; | 166 scoped_ptr<CdmVideoDecoder> video_decoder_; |
| 170 | 167 |
| 171 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); | 168 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); |
| 172 }; | 169 }; |
| 173 | 170 |
| 174 } // namespace webkit_media | 171 } // namespace webkit_media |
| 175 | 172 |
| 176 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 173 #endif // WEBKIT_RENDERER_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
| OLD | NEW |