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

Side by Side Diff: Source/modules/mediastream/RTCDataChannelEvent.cpp

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 #include "config.h" 25 #include "config.h"
26 #include "modules/mediastream/RTCDataChannelEvent.h" 26 #include "modules/mediastream/RTCDataChannelEvent.h"
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create() 30 PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create()
31 { 31 {
32 return adoptRefWillBeNoop(new RTCDataChannelEvent); 32 return adoptRefWillBeNoop(new RTCDataChannelEvent);
33 } 33 }
34 34
35 PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const At omicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel> ch annel) 35 PassRefPtrWillBeRawPtr<RTCDataChannelEvent> RTCDataChannelEvent::create(const At omicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<RTCDat aChannel> channel)
36 { 36 {
37 return adoptRefWillBeNoop(new RTCDataChannelEvent(type, canBubble, cancelabl e, channel)); 37 return adoptRefWillBeNoop(new RTCDataChannelEvent(type, canBubble, cancelabl e, channel));
38 } 38 }
39 39
40 40
41 RTCDataChannelEvent::RTCDataChannelEvent() 41 RTCDataChannelEvent::RTCDataChannelEvent()
42 { 42 {
43 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
44 } 44 }
45 45
46 RTCDataChannelEvent::RTCDataChannelEvent(const AtomicString& type, bool canBubbl e, bool cancelable, PassRefPtr<RTCDataChannel> channel) 46 RTCDataChannelEvent::RTCDataChannelEvent(const AtomicString& type, bool canBubbl e, bool cancelable, PassRefPtrWillBeRawPtr<RTCDataChannel> channel)
47 : Event(type, canBubble, cancelable) 47 : Event(type, canBubble, cancelable)
48 , m_channel(channel) 48 , m_channel(channel)
49 { 49 {
50 ScriptWrappable::init(this); 50 ScriptWrappable::init(this);
51 } 51 }
52 52
53 RTCDataChannelEvent::~RTCDataChannelEvent() 53 RTCDataChannelEvent::~RTCDataChannelEvent()
54 { 54 {
55 } 55 }
56 56
57 RTCDataChannel* RTCDataChannelEvent::channel() const 57 RTCDataChannel* RTCDataChannelEvent::channel() const
58 { 58 {
59 return m_channel.get(); 59 return m_channel.get();
60 } 60 }
61 61
62 const AtomicString& RTCDataChannelEvent::interfaceName() const 62 const AtomicString& RTCDataChannelEvent::interfaceName() const
63 { 63 {
64 return EventNames::RTCDataChannelEvent; 64 return EventNames::RTCDataChannelEvent;
65 } 65 }
66 66
67 void RTCDataChannelEvent::trace(Visitor* visitor) 67 void RTCDataChannelEvent::trace(Visitor* visitor)
68 { 68 {
69 visitor->trace(m_channel);
69 Event::trace(visitor); 70 Event::trace(visitor);
70 } 71 }
71 72
72 } // namespace WebCore 73 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698