Chromium Code Reviews| Index: Source/modules/mediarecorder/BlobEvent.h |
| diff --git a/Source/modules/mediarecorder/BlobEvent.h b/Source/modules/mediarecorder/BlobEvent.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e324b71878ef4cecedbb131c38ef5ee1e5dc96a6 |
| --- /dev/null |
| +++ b/Source/modules/mediarecorder/BlobEvent.h |
| @@ -0,0 +1,46 @@ |
| +// 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 "core/fileapi/Blob.h" |
| +#include "modules/EventModules.h" |
| +#include "modules/ModulesExport.h" |
| +#include "wtf/text/AtomicString.h" |
| + |
| +namespace blink { |
| + |
| +class Blob; |
| +class BlobEventInit; |
| + |
| +class MODULES_EXPORT BlobEvent final : public Event { |
| + DEFINE_WRAPPERTYPEINFO(); |
| +public: |
| + ~BlobEvent() override {} |
| + |
| + static PassRefPtrWillBeRawPtr<BlobEvent> create(); |
| + static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type); |
|
Peter Beverloo
2015/09/22 14:03:42
You can remove this create() method and the associ
mcasas
2015/09/22 16:18:48
Oops, you're right. Done.
|
| + static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, const BlobEventInit& initializer); |
| + static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, bool canBubble, bool cancelable, Blob*); |
|
Peter Beverloo
2015/09/22 14:03:42
As this is only being called by MediaRecorder, you
mcasas
2015/09/22 16:18:48
Done.
|
| + |
| + Blob* data() const { return m_blob.get(); } |
| + |
| + // Event |
| + const AtomicString& interfaceName() const final; |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + BlobEvent() {} |
| + BlobEvent(const AtomicString& type); |
| + BlobEvent(const AtomicString& type, const BlobEventInit& initializer); |
| + BlobEvent(const AtomicString& type, bool canBubble, bool cancelable, Blob*); |
| + |
| + PersistentWillBeMember<Blob> m_blob; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // BlobEvent_h |