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

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: MediaRecorder: BlobEvent 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
17 class MODULES_EXPORT BlobEvent final : public Event {
18 DEFINE_WRAPPERTYPEINFO();
19 public:
20 virtual ~BlobEvent() {}
Peter Beverloo 2015/09/18 13:07:26 ~BlobEvent() override {} (The base class already
mcasas 2015/09/21 15:24:15 Done.
21
22 static PassRefPtrWillBeRawPtr<BlobEvent> create();
23 static PassRefPtrWillBeRawPtr<BlobEvent> create(const AtomicString& type, bo ol canBubble, bool cancelable, Blob*);
Peter Beverloo 2015/09/18 13:07:26 nit: You could consider inlining the bodies of the
mcasas 2015/09/21 15:24:15 Yeah, I'd love to, but in previous CLs I was instr
Peter Beverloo 2015/09/22 14:03:42 OK. I disagree, but don't feel strongly either so
24
25 Blob* data() const { return m_blob.get(); }
26
27 // Event
28 const AtomicString& interfaceName() const final;
29
30 DECLARE_VIRTUAL_TRACE();
31
32 private:
33 BlobEvent() {}
34 BlobEvent(const AtomicString& type, bool canBubble, bool cancelable, Blob*);
35
36 PersistentWillBeMember<Blob> m_blob;
37 };
38
39 } // namespace blink
40
41 #endif // BlobEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698