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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 DOMArrayBufferView; 38 class DOMArrayBufferView;
39 class ExceptionState; 39 class ExceptionState;
40 class RTCPeerConnection; 40 class RTCPeerConnection;
41 class WebRTCDataChannelHandler; 41 class WebRTCDataChannelHandler;
42 class WebRTCPeerConnectionHandler; 42 class WebRTCPeerConnectionHandler;
43 struct WebRTCDataChannelInit; 43 struct WebRTCDataChannelInit;
44 44
45 class RTCDataChannel final 45 class RTCDataChannel final
46 : public RefCountedGarbageCollectedEventTargetWithInlineData<RTCDataChannel> 46 : public RefCountedGarbageCollectedEventTargetWithInlineData<RTCDataChannel>
47 , public WebRTCDataChannelHandlerClient { 47 , public WebRTCDataChannelHandlerClient {
48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi llBeGarbageCollectedFinalized<RTCDataChannel>); 48 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(RTCDataChannel);
49 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
50 public: 50 public:
51 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, PassOwn Ptr<WebRTCDataChannelHandler>); 51 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, PassOwn Ptr<WebRTCDataChannelHandler>);
52 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, WebRTCP eerConnectionHandler*, const String& label, const WebRTCDataChannelInit&, Except ionState&); 52 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, WebRTCP eerConnectionHandler*, const String& label, const WebRTCDataChannelInit&, Except ionState&);
53 virtual ~RTCDataChannel(); 53 virtual ~RTCDataChannel();
54 54
55 ReadyState getHandlerState() const; 55 ReadyState getHandlerState() const;
56 56
57 String label() const; 57 String label() const;
58 58
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 Timer<RTCDataChannel> m_scheduledEventTimer; 124 Timer<RTCDataChannel> m_scheduledEventTimer;
125 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents; 125 WillBeHeapVector<RefPtrWillBeMember<Event>> m_scheduledEvents;
126 126
127 WeakMember<RTCPeerConnection> m_connection; 127 WeakMember<RTCPeerConnection> m_connection;
128 }; 128 };
129 129
130 } // namespace blink 130 } // namespace blink
131 131
132 #endif // RTCDataChannel_h 132 #endif // RTCDataChannel_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCDTMFSender.h ('k') | Source/modules/mediastream/RTCPeerConnection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698