| 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 #ifndef ContentDecryptionModuleResultPromise_h | 5 #ifndef ContentDecryptionModuleResultPromise_h |
| 6 #define ContentDecryptionModuleResultPromise_h | 6 #define ContentDecryptionModuleResultPromise_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromiseResolver.h" | 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 9 #include "core/dom/ExceptionCode.h" | 9 #include "core/dom/ExceptionCode.h" |
| 10 #include "platform/ContentDecryptionModuleResult.h" | 10 #include "platform/ContentDecryptionModuleResult.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 m_resolver->resolve(value...); | 43 m_resolver->resolve(value...); |
| 44 m_resolver.clear(); | 44 m_resolver.clear(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 // Rejects the promise with a DOMException. | 47 // Rejects the promise with a DOMException. |
| 48 void reject(ExceptionCode, const String& errorMessage); | 48 void reject(ExceptionCode, const String& errorMessage); |
| 49 | 49 |
| 50 ExecutionContext* executionContext() const; | 50 ExecutionContext* executionContext() const; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 RefPtr<ScriptPromiseResolver> m_resolver; | 53 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| 57 | 57 |
| 58 #endif // ContentDecryptionModuleResultPromise_h | 58 #endif // ContentDecryptionModuleResultPromise_h |
| OLD | NEW |