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 3 // found in the LICENSE file. 4 5 #include "config.h" 6 #include "public/platform/WebContentDecryptionModuleResult.h" 7 8 #include "platform/ContentDecryptionModuleResult.h" 9 10 namespace blink { 11 complete()12void WebContentDecryptionModuleResult::complete() 13 { 14 m_impl->complete(); 15 reset(); 16 } 17 completeWithSession(SessionStatus status)18void WebContentDecryptionModuleResult::completeWithSession(SessionStatus status) 19 { 20 m_impl->completeWithSession(status); 21 reset(); 22 } 23 completeWithError(WebContentDecryptionModuleException exception,unsigned long systemCode,const WebString & errorMessage)24void WebContentDecryptionModuleResult::completeWithError(WebContentDecryptionModuleException exception, unsigned long systemCode, const WebString& errorMessage) 25 { 26 m_impl->completeWithError(exception, systemCode, errorMessage); 27 reset(); 28 } 29 WebContentDecryptionModuleResult(WebCore::ContentDecryptionModuleResult * impl)30WebContentDecryptionModuleResult::WebContentDecryptionModuleResult(WebCore::ContentDecryptionModuleResult* impl) 31 : m_impl(impl) 32 { 33 ASSERT(m_impl.get()); 34 } 35 reset()36void WebContentDecryptionModuleResult::reset() 37 { 38 m_impl.reset(); 39 } 40 assign(const WebContentDecryptionModuleResult & o)41void WebContentDecryptionModuleResult::assign(const WebContentDecryptionModuleResult& o) 42 { 43 m_impl = o.m_impl; 44 } 45 46 } // namespace blink 47