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 "public/platform/WebContentDecryptionModuleResult.h" | 5 #include "public/platform/WebContentDecryptionModuleResult.h" |
6 | 6 |
7 #include "platform/ContentDecryptionModuleResult.h" | 7 #include "platform/ContentDecryptionModuleResult.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 WebContentDecryptionModuleException exception, | 29 WebContentDecryptionModuleException exception, |
30 unsigned long system_code, | 30 unsigned long system_code, |
31 const WebString& error_message) { | 31 const WebString& error_message) { |
32 impl_->CompleteWithError(exception, system_code, error_message); | 32 impl_->CompleteWithError(exception, system_code, error_message); |
33 Reset(); | 33 Reset(); |
34 } | 34 } |
35 | 35 |
36 WebContentDecryptionModuleResult::WebContentDecryptionModuleResult( | 36 WebContentDecryptionModuleResult::WebContentDecryptionModuleResult( |
37 ContentDecryptionModuleResult* impl) | 37 ContentDecryptionModuleResult* impl) |
38 : impl_(impl) { | 38 : impl_(impl) { |
39 ASSERT(impl_.Get()); | 39 DCHECK(impl_.Get()); |
40 } | 40 } |
41 | 41 |
42 void WebContentDecryptionModuleResult::Reset() { | 42 void WebContentDecryptionModuleResult::Reset() { |
43 impl_.Reset(); | 43 impl_.Reset(); |
44 } | 44 } |
45 | 45 |
46 void WebContentDecryptionModuleResult::Assign( | 46 void WebContentDecryptionModuleResult::Assign( |
47 const WebContentDecryptionModuleResult& o) { | 47 const WebContentDecryptionModuleResult& o) { |
48 impl_ = o.impl_; | 48 impl_ = o.impl_; |
49 } | 49 } |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
OLD | NEW |