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

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

Issue 185393006: Revert "Add [WillBeGarbageCollected] to Event.idl" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 13 matching lines...) Expand all
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 "core/events/ThreadLocalEventNames.h" 29 #include "core/events/ThreadLocalEventNames.h"
30 #include "modules/mediastream/RTCIceCandidate.h" 30 #include "modules/mediastream/RTCIceCandidate.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create() 34 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create()
35 { 35 {
36 return adoptRefWillBeRefCountedGarbageCollected(new RTCIceCandidateEvent); 36 return adoptRef(new RTCIceCandidateEvent);
37 } 37 }
38 38
39 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool c anBubble, bool cancelable, PassRefPtr<RTCIceCandidate> candidate) 39 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bo ol cancelable, PassRefPtr<RTCIceCandidate> candidate)
40 { 40 {
41 return adoptRefWillBeRefCountedGarbageCollected(new RTCIceCandidateEvent(can Bubble, cancelable, candidate)); 41 return adoptRef(new RTCIceCandidateEvent(canBubble, cancelable, candidate));
42 } 42 }
43 43
44 RTCIceCandidateEvent::RTCIceCandidateEvent() 44 RTCIceCandidateEvent::RTCIceCandidateEvent()
45 { 45 {
46 ScriptWrappable::init(this); 46 ScriptWrappable::init(this);
47 } 47 }
48 48
49 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass RefPtr<RTCIceCandidate> candidate) 49 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass RefPtr<RTCIceCandidate> candidate)
50 : Event(EventTypeNames::icecandidate, canBubble, cancelable) 50 : Event(EventTypeNames::icecandidate, canBubble, cancelable)
51 , m_candidate(candidate) 51 , m_candidate(candidate)
(...skipping 15 matching lines...) Expand all
67 return EventNames::RTCIceCandidateEvent; 67 return EventNames::RTCIceCandidateEvent;
68 } 68 }
69 69
70 void RTCIceCandidateEvent::trace(Visitor* visitor) 70 void RTCIceCandidateEvent::trace(Visitor* visitor)
71 { 71 {
72 Event::trace(visitor); 72 Event::trace(visitor);
73 } 73 }
74 74
75 } // namespace WebCore 75 } // namespace WebCore
76 76
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698