Index: Source/modules/mediastream/BlobEvent.h |
diff --git a/Source/modules/mediastream/BlobEvent.h b/Source/modules/mediastream/BlobEvent.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b0bba2280830138167269f4ba9b9ed669816f0ae |
--- /dev/null |
+++ b/Source/modules/mediastream/BlobEvent.h |
@@ -0,0 +1,40 @@ |
+// 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 BlobEvent_h |
+#define BlobEvent_h |
+ |
+#include "modules/EventModules.h" |
+#include "modules/ModulesExport.h" |
+#include "wtf/text/AtomicString.h" |
+ |
+namespace blink { |
+ |
+class Blob; |
+ |
+class MODULES_EXPORT BlobEvent final : public Event { |
+ DEFINE_WRAPPERTYPEINFO(); |
+public: |
+ virtual ~BlobEvent(); |
+ |
+ static PassRefPtrWillBeRawPtr<BlobEvent> create(); |
Peter Beverloo
2015/07/29 16:54:22
nit: Given that they're trivial, you could inline
mcasas
2015/07/30 13:20:36
Done.
|
+ static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, bool canBubble, bool cancelable, Blob*); |
+ |
+ Blob* data() const { return m_blob.get(); } |
+ |
+ // Event |
+ virtual const AtomicString& interfaceName() const override; |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
+ BlobEvent(); |
+ BlobEvent(const AtomicString& type, bool canBubble, bool cancelable, Blob*); |
+ |
+ PersistentWillBeMember<Blob> m_blob; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // BlobEvent_h |