| 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 #include "webkit/media/crypto/ppapi_decryptor.h" | 5 #include "webkit/media/crypto/ppapi_decryptor.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 FROM_HERE, | 90 FROM_HERE, |
| 91 base::Bind(&PpapiDecryptor::Decrypt, base::Unretained(this), | 91 base::Bind(&PpapiDecryptor::Decrypt, base::Unretained(this), |
| 92 encrypted, decrypt_cb)); | 92 encrypted, decrypt_cb)); |
| 93 return; | 93 return; |
| 94 } | 94 } |
| 95 | 95 |
| 96 if (!cdm_plugin_->Decrypt(encrypted, decrypt_cb)) | 96 if (!cdm_plugin_->Decrypt(encrypted, decrypt_cb)) |
| 97 decrypt_cb.Run(kError, NULL); | 97 decrypt_cb.Run(kError, NULL); |
| 98 } | 98 } |
| 99 | 99 |
| 100 void PpapiDecryptor::Stop() { | 100 void PpapiDecryptor::CancelDecrypt() { |
| 101 } | 101 } |
| 102 | 102 |
| 103 void PpapiDecryptor::ReportFailureToCallPlugin(const std::string& key_system, | 103 void PpapiDecryptor::ReportFailureToCallPlugin(const std::string& key_system, |
| 104 const std::string& session_id) { | 104 const std::string& session_id) { |
| 105 DVLOG(1) << "Failed to call plugin."; | 105 DVLOG(1) << "Failed to call plugin."; |
| 106 client_->KeyError(key_system, session_id, kUnknownError, 0); | 106 client_->KeyError(key_system, session_id, kUnknownError, 0); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace webkit_media | 109 } // namespace webkit_media |
| OLD | NEW |