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 WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 5 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 6 #define WEBKIT_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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& key_system, const std::string& session_id); |
89 void KeyError(const std::string& key_system, | 89 void KeyError(const std::string& key_system, |
90 const std::string& session_id, | 90 const std::string& session_id, |
91 media::Decryptor::KeyError error_code, | 91 media::MediaKeys::KeyError error_code, |
92 int system_code); | 92 int system_code); |
93 void KeyMessage(const std::string& key_system, | 93 void KeyMessage(const std::string& key_system, |
94 const std::string& session_id, | 94 const std::string& session_id, |
95 const std::string& message, | 95 const std::string& message, |
96 const std::string& default_url); | 96 const std::string& default_url); |
97 void NeedKey(const std::string& key_system, | 97 void NeedKey(const std::string& key_system, |
98 const std::string& session_id, | 98 const std::string& session_id, |
99 const std::string& type, | 99 const std::string& type, |
100 scoped_ptr<uint8[]> init_data, int init_data_length); | 100 scoped_ptr<uint8[]> init_data, int init_data_length); |
101 | 101 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER | 167 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER |
168 | 168 |
169 scoped_ptr<CdmVideoDecoder> video_decoder_; | 169 scoped_ptr<CdmVideoDecoder> video_decoder_; |
170 | 170 |
171 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); | 171 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); |
172 }; | 172 }; |
173 | 173 |
174 } // namespace webkit_media | 174 } // namespace webkit_media |
175 | 175 |
176 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ | 176 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CLEAR_KEY_CDM_H_ |
OLD | NEW |