OLD | NEW |
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 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 | 26 |
27 #include "modules/mediastream/RTCIceCandidateEvent.h" | 27 #include "modules/mediastream/RTCIceCandidateEvent.h" |
28 | 28 |
29 #include "modules/mediastream/RTCIceCandidate.h" | 29 #include "modules/mediastream/RTCIceCandidate.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create() | 33 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create() |
34 { | 34 { |
35 return adoptRef(new RTCIceCandidateEvent); | 35 return adoptRefWillBeRefCountedGarbageCollected(new RTCIceCandidateEvent); |
36 } | 36 } |
37 | 37 |
38 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bo
ol cancelable, PassRefPtr<RTCIceCandidate> candidate) | 38 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool c
anBubble, bool cancelable, PassRefPtr<RTCIceCandidate> candidate) |
39 { | 39 { |
40 return adoptRef(new RTCIceCandidateEvent(canBubble, cancelable, candidate)); | 40 return adoptRefWillBeRefCountedGarbageCollected(new RTCIceCandidateEvent(can
Bubble, cancelable, candidate)); |
41 } | 41 } |
42 | 42 |
43 RTCIceCandidateEvent::RTCIceCandidateEvent() | 43 RTCIceCandidateEvent::RTCIceCandidateEvent() |
44 { | 44 { |
45 ScriptWrappable::init(this); | 45 ScriptWrappable::init(this); |
46 } | 46 } |
47 | 47 |
48 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass
RefPtr<RTCIceCandidate> candidate) | 48 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass
RefPtr<RTCIceCandidate> candidate) |
49 : Event(EventTypeNames::icecandidate, canBubble, cancelable) | 49 : Event(EventTypeNames::icecandidate, canBubble, cancelable) |
50 , m_candidate(candidate) | 50 , m_candidate(candidate) |
(...skipping 15 matching lines...) Expand all Loading... |
66 return EventNames::RTCIceCandidateEvent; | 66 return EventNames::RTCIceCandidateEvent; |
67 } | 67 } |
68 | 68 |
69 void RTCIceCandidateEvent::trace(Visitor* visitor) | 69 void RTCIceCandidateEvent::trace(Visitor* visitor) |
70 { | 70 { |
71 Event::trace(visitor); | 71 Event::trace(visitor); |
72 } | 72 } |
73 | 73 |
74 } // namespace WebCore | 74 } // namespace WebCore |
75 | 75 |
OLD | NEW |