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

Side by Side Diff: third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #include "modules/mediarecorder/BlobEvent.h" 6 #include "modules/mediarecorder/BlobEvent.h"
7 7
8 #include "modules/mediarecorder/BlobEventInit.h" 8 #include "modules/mediarecorder/BlobEventInit.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // static 12 // static
13 PassRefPtrWillBeRawPtr<BlobEvent> BlobEvent::create() 13 RawPtr<BlobEvent> BlobEvent::create()
14 { 14 {
15 return adoptRefWillBeNoop(new BlobEvent); 15 return adoptRefWillBeNoop(new BlobEvent);
16 } 16 }
17 17
18 // static 18 // static
19 PassRefPtrWillBeRawPtr<BlobEvent> BlobEvent::create(const AtomicString& type, co nst BlobEventInit& initializer) 19 RawPtr<BlobEvent> BlobEvent::create(const AtomicString& type, const BlobEventIni t& initializer)
20 { 20 {
21 return adoptRefWillBeNoop(new BlobEvent(type, initializer)); 21 return new BlobEvent(type, initializer);
22 } 22 }
23 23
24 // static 24 // static
25 PassRefPtrWillBeRawPtr<BlobEvent> BlobEvent::create(const AtomicString& type, Bl ob* blob) 25 RawPtr<BlobEvent> BlobEvent::create(const AtomicString& type, Blob* blob)
26 { 26 {
27 return adoptRefWillBeNoop(new BlobEvent(type, blob)); 27 return new BlobEvent(type, blob);
28 } 28 }
29 29
30 const AtomicString& BlobEvent::interfaceName() const 30 const AtomicString& BlobEvent::interfaceName() const
31 { 31 {
32 return EventNames::BlobEvent; 32 return EventNames::BlobEvent;
33 } 33 }
34 34
35 DEFINE_TRACE(BlobEvent) 35 DEFINE_TRACE(BlobEvent)
36 { 36 {
37 visitor->trace(m_blob); 37 visitor->trace(m_blob);
38 Event::trace(visitor); 38 Event::trace(visitor);
39 } 39 }
40 40
41 BlobEvent::BlobEvent(const AtomicString& type, const BlobEventInit& initializer) 41 BlobEvent::BlobEvent(const AtomicString& type, const BlobEventInit& initializer)
42 : Event(type, initializer) 42 : Event(type, initializer)
43 , m_blob(initializer.data()) 43 , m_blob(initializer.data())
44 { 44 {
45 } 45 }
46 46
47 BlobEvent::BlobEvent(const AtomicString& type, Blob* blob) 47 BlobEvent::BlobEvent(const AtomicString& type, Blob* blob)
48 : Event(type, false /* canBubble */, false /* cancelable */) 48 : Event(type, false /* canBubble */, false /* cancelable */)
49 , m_blob(blob) 49 , m_blob(blob)
50 { 50 {
51 } 51 }
52 52
53 } // namespace blink 53 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698