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

Side by Side Diff: Source/modules/mediastream/RTCDataChannel.h

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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 27 matching lines...) Expand all
38 class WebRTCPeerConnectionHandler; 38 class WebRTCPeerConnectionHandler;
39 struct WebRTCDataChannelInit; 39 struct WebRTCDataChannelInit;
40 } 40 }
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 class Blob; 44 class Blob;
45 class ExceptionState; 45 class ExceptionState;
46 46
47 class RTCDataChannel FINAL : public RefCountedWillBeRefCountedGarbageCollected<R TCDataChannel>, public ScriptWrappable, public EventTargetWithInlineData, public blink::WebRTCDataChannelHandlerClient { 47 class RTCDataChannel FINAL : public RefCountedWillBeRefCountedGarbageCollected<R TCDataChannel>, public ScriptWrappable, public EventTargetWithInlineData, public blink::WebRTCDataChannelHandlerClient {
48 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<R TCDataChannel>); 48 REFCOUNTED_EVENT_TARGET(RTCDataChannel);
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCDataChannel);
49 public: 50 public:
50 static PassRefPtrWillBeRawPtr<RTCDataChannel> create(ExecutionContext*, Pass OwnPtr<blink::WebRTCDataChannelHandler>); 51 static PassRefPtrWillBeRawPtr<RTCDataChannel> create(ExecutionContext*, Pass OwnPtr<blink::WebRTCDataChannelHandler>);
51 static PassRefPtrWillBeRawPtr<RTCDataChannel> create(ExecutionContext*, blin k::WebRTCPeerConnectionHandler*, const String& label, const blink::WebRTCDataCha nnelInit&, ExceptionState&); 52 static PassRefPtrWillBeRawPtr<RTCDataChannel> create(ExecutionContext*, blin k::WebRTCPeerConnectionHandler*, const String& label, const blink::WebRTCDataCha nnelInit&, ExceptionState&);
52 virtual ~RTCDataChannel(); 53 virtual ~RTCDataChannel();
53 54
54 String label() const; 55 String label() const;
55 56
56 // DEPRECATED 57 // DEPRECATED
57 bool reliable() const; 58 bool reliable() const;
58 59
(...skipping 16 matching lines...) Expand all
75 76
76 void close(); 77 void close();
77 78
78 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); 79 DEFINE_ATTRIBUTE_EVENT_LISTENER(open);
79 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
80 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
81 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
82 83
83 void stop(); 84 void stop();
84 85
85 void trace(Visitor*);
86
87 // EventTarget 86 // EventTarget
88 virtual const AtomicString& interfaceName() const OVERRIDE; 87 virtual const AtomicString& interfaceName() const OVERRIDE;
89 virtual ExecutionContext* executionContext() const OVERRIDE; 88 virtual ExecutionContext* executionContext() const OVERRIDE;
90 89
90 virtual void trace(Visitor*) OVERRIDE;
91
91 private: 92 private:
92 RTCDataChannel(ExecutionContext*, PassOwnPtr<blink::WebRTCDataChannelHandler >); 93 RTCDataChannel(ExecutionContext*, PassOwnPtr<blink::WebRTCDataChannelHandler >);
93 94
94 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); 95 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>);
95 void scheduledEventTimerFired(Timer<RTCDataChannel>*); 96 void scheduledEventTimerFired(Timer<RTCDataChannel>*);
96 97
97 ExecutionContext* m_executionContext; 98 ExecutionContext* m_executionContext;
98 99
99 // blink::WebRTCDataChannelHandlerClient 100 // blink::WebRTCDataChannelHandlerClient
100 virtual void didChangeReadyState(blink::WebRTCDataChannelHandlerClient::Read yState) OVERRIDE; 101 virtual void didChangeReadyState(blink::WebRTCDataChannelHandlerClient::Read yState) OVERRIDE;
(...skipping 13 matching lines...) Expand all
114 }; 115 };
115 BinaryType m_binaryType; 116 BinaryType m_binaryType;
116 117
117 Timer<RTCDataChannel> m_scheduledEventTimer; 118 Timer<RTCDataChannel> m_scheduledEventTimer;
118 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; 119 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents;
119 }; 120 };
120 121
121 } // namespace WebCore 122 } // namespace WebCore
122 123
123 #endif // RTCDataChannel_h 124 #endif // RTCDataChannel_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCDTMFSender.cpp ('k') | Source/modules/mediastream/RTCDataChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698