Index: third_party/WebKit/Source/modules/mediasession/MediaSessionError.h |
diff --git a/third_party/WebKit/Source/modules/mediasession/MediaSessionError.h b/third_party/WebKit/Source/modules/mediasession/MediaSessionError.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f6e515b2e1e761e03134a171fe0732cb0ad8c3a3 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/mediasession/MediaSessionError.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2015 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 MediaSessionError_h |
+#define MediaSessionError_h |
+ |
+#include "platform/heap/Handle.h" |
+#include <v8/include/v8.h> |
+ |
+namespace blink { |
+ |
+class DOMException; |
+class ScriptPromiseResolver; |
+enum class WebMediaSessionError; |
+ |
+class MediaSessionError { |
+ STATIC_ONLY(MediaSessionError); |
+public: |
+ // For CallbackPromiseAdapter |
+ using WebType = const WebMediaSessionError&; |
+ static DOMException* take(ScriptPromiseResolver*, const WebMediaSessionError& webError); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // MediaSessionError_h |