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 "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h" | 6 #include "modules/encryptedmedia/ContentDecryptionModuleResultPromise.h" |
7 | 7 |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
10 #include "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 { | 82 { |
83 m_resolver->reject(DOMException::create(code, errorMessage)); | 83 m_resolver->reject(DOMException::create(code, errorMessage)); |
84 m_resolver.clear(); | 84 m_resolver.clear(); |
85 } | 85 } |
86 | 86 |
87 ExecutionContext* ContentDecryptionModuleResultPromise::executionContext() const | 87 ExecutionContext* ContentDecryptionModuleResultPromise::executionContext() const |
88 { | 88 { |
89 return m_resolver->executionContext(); | 89 return m_resolver->executionContext(); |
90 } | 90 } |
91 | 91 |
92 void ContentDecryptionModuleResultPromise::trace(Visitor* visitor) | 92 DEFINE_TRACE(ContentDecryptionModuleResultPromise) |
93 { | 93 { |
94 visitor->trace(m_resolver); | 94 visitor->trace(m_resolver); |
95 ContentDecryptionModuleResult::trace(visitor); | 95 ContentDecryptionModuleResult::trace(visitor); |
96 } | 96 } |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
OLD | NEW |