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

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

Issue 1255873002: MediaRecorder Blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: peter@ and guidou@ comments Created 5 years, 4 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 "modules/mediastream/BlobEvent.h"
12 #include "wtf/text/AtomicString.h"
13
14 namespace blink {
15
16 class Blob;
17
18 class MODULES_EXPORT BlobEvent final : public Event {
19 DEFINE_WRAPPERTYPEINFO();
20 public:
21 virtual ~BlobEvent() {}
22
23 static PassRefPtrWillBeRawPtr<BlobEvent> create() {
24 return adoptRefWillBeNoop(new BlobEvent);
25 }
26
27 static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, bo ol canBubble, bool cancelable, Blob* blob) {
28 return adoptRefWillBeNoop(new BlobEvent(type, canBubble, cancelable, blo b));
29 }
30
31 Blob* data() const { return m_blob.get(); }
tommi (sloooow) - chröme 2015/08/11 08:46:50 can we return const Blob* or make the method non-c
mcasas 2015/08/12 06:47:50 Done.
32
33 // Event
34 virtual const AtomicString& interfaceName() const final { return EventNames: :BlobEvent; }
35
36 DECLARE_VIRTUAL_TRACE();
37
38 private:
39 BlobEvent() {}
40 BlobEvent(const AtomicString& type, bool canBubble, bool cancelable, Blob* b lob)
41 : Event(type, canBubble, cancelable)
42 , m_blob(blob) { }
43
44 PersistentWillBeMember<Blob> m_blob;
45 };
46
47 } // namespace blink
48
49 #endif // BlobEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698