| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
| 6 #include "public/platform/WebContentDecryptionModuleResult.h" | 6 #include "public/platform/WebContentDecryptionModuleResult.h" |
| 7 | 7 |
| 8 #include "platform/ContentDecryptionModuleResult.h" | 8 #include "platform/ContentDecryptionModuleResult.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 void WebContentDecryptionModuleResult::complete() | 12 void WebContentDecryptionModuleResult::complete() |
| 13 { | 13 { |
| 14 m_impl->complete(); | 14 m_impl->complete(); |
| 15 reset(); | 15 reset(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void WebContentDecryptionModuleResult::completeWithSession(SessionStatus status) | 18 void WebContentDecryptionModuleResult::completeWithSession(SessionStatus status) |
| 19 { | 19 { |
| 20 m_impl->completeWithSession(status); | 20 m_impl->completeWithSession(status); |
| 21 reset(); | 21 reset(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 void WebContentDecryptionModuleResult::completeWithError(WebContentDecryptionMod
uleException exception, unsigned long systemCode, const WebString& errorMessage) | 24 void WebContentDecryptionModuleResult::completeWithError(WebContentDecryptionMod
uleException exception, unsigned long systemCode, const WebString& errorMessage) |
| 25 { | 25 { |
| 26 m_impl->completeWithError(exception, systemCode, errorMessage); | 26 m_impl->completeWithError(exception, systemCode, errorMessage); |
| 27 reset(); | 27 reset(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 WebContentDecryptionModuleResult::WebContentDecryptionModuleResult(blink::Conten
tDecryptionModuleResult* impl) | 30 WebContentDecryptionModuleResult::WebContentDecryptionModuleResult(ContentDecryp
tionModuleResult* impl) |
| 31 : m_impl(impl) | 31 : m_impl(impl) |
| 32 { | 32 { |
| 33 ASSERT(m_impl.get()); | 33 ASSERT(m_impl.get()); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void WebContentDecryptionModuleResult::reset() | 36 void WebContentDecryptionModuleResult::reset() |
| 37 { | 37 { |
| 38 m_impl.reset(); | 38 m_impl.reset(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void WebContentDecryptionModuleResult::assign(const WebContentDecryptionModuleRe
sult& o) | 41 void WebContentDecryptionModuleResult::assign(const WebContentDecryptionModuleRe
sult& o) |
| 42 { | 42 { |
| 43 m_impl = o.m_impl; | 43 m_impl = o.m_impl; |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| OLD | NEW |