Index: third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.h |
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.h b/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ca058d442ecdec4b941ceeef751e6a5950f8f001 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef RTCVoidRequestPromiseImpl_h |
+#define RTCVoidRequestPromiseImpl_h |
+ |
+#include "core/dom/ExceptionCode.h" |
+#include "platform/mediastream/RTCVoidRequest.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+class ScriptPromiseResolver; |
+class RTCPeerConnection; |
+ |
+class RTCVoidRequestPromiseImpl final : public RTCVoidRequest { |
+public: |
+ static RTCVoidRequestPromiseImpl* create(RTCPeerConnection*, ScriptPromiseResolver*, ExceptionCode); |
+ ~RTCVoidRequestPromiseImpl() override; |
+ |
+ // RTCVoidRequest |
+ void requestSucceeded() override; |
+ void requestFailed(const String& error) override; |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
+ RTCVoidRequestPromiseImpl(RTCPeerConnection*, ScriptPromiseResolver*, ExceptionCode); |
+ |
+ void clear(); |
+ |
+ Member<RTCPeerConnection> m_requester; |
+ Member<ScriptPromiseResolver> m_resolver; |
+ ExceptionCode m_exceptionCode; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // RTCVoidRequestPromiseImpl_h |