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

Side by Side Diff: Source/modules/mediarecorder/BlobEvent.h

Issue 1354863002: MediaRecorder: Adding BlobEvent and connecting it in MediaRecorderHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: peter@ comments, added BlobEventInit and LayoutTest Created 5 years, 3 months 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BlobEvent_h
6 #define BlobEvent_h
7
8 #include "core/fileapi/Blob.h"
9 #include "modules/EventModules.h"
10 #include "modules/ModulesExport.h"
11 #include "wtf/text/AtomicString.h"
12
13 namespace blink {
14
15 class Blob;
16 class BlobEventInit;
17
18 class MODULES_EXPORT BlobEvent final : public Event {
19 DEFINE_WRAPPERTYPEINFO();
20 public:
21 ~BlobEvent() override {}
22
23 static PassRefPtrWillBeRawPtr<BlobEvent> create();
24 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.
25 static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, co nst BlobEventInit& initializer);
26 static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, bo ol 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.
27
28 Blob* data() const { return m_blob.get(); }
29
30 // Event
31 const AtomicString& interfaceName() const final;
32
33 DECLARE_VIRTUAL_TRACE();
34
35 private:
36 BlobEvent() {}
37 BlobEvent(const AtomicString& type);
38 BlobEvent(const AtomicString& type, const BlobEventInit& initializer);
39 BlobEvent(const AtomicString& type, bool canBubble, bool cancelable, Blob*);
40
41 PersistentWillBeMember<Blob> m_blob;
42 };
43
44 } // namespace blink
45
46 #endif // BlobEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698