Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.h

Issue 783423003: Make ScriptPromiseResolver RefCountedWillBeRefCountedGarbageCollected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP: 1st trial Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698