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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 RTCPeerConnection; 38 class RTCPeerConnection;
39 class WebRTCDataChannelHandler; 39 class WebRTCDataChannelHandler;
40 class WebRTCPeerConnectionHandler; 40 class WebRTCPeerConnectionHandler;
41 struct WebRTCDataChannelInit; 41 struct WebRTCDataChannelInit;
42 42
43 class RTCDataChannel FINAL 43 class RTCDataChannel FINAL
44 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDataCh annel> 44 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<RTCDataCh annel>
45 , public EventTargetWithInlineData 45 , public EventTargetWithInlineData
46 , public WebRTCDataChannelHandlerClient { 46 , public WebRTCDataChannelHandlerClient {
47 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi llBeGarbageCollectedFinalized<RTCDataChannel>); 47 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi llBeGarbageCollectedFinalized<RTCDataChannel>);
48 DEFINE_WRAPPERTYPEINFO();
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCDataChannel); 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(RTCDataChannel);
49 public: 50 public:
50 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, PassOwn Ptr<WebRTCDataChannelHandler>); 51 static RTCDataChannel* create(ExecutionContext*, RTCPeerConnection*, PassOwn Ptr<WebRTCDataChannelHandler>);
51 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&);
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;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 Timer<RTCDataChannel> m_scheduledEventTimer; 119 Timer<RTCDataChannel> m_scheduledEventTimer;
119 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; 120 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents;
120 121
121 WeakMember<RTCPeerConnection> m_connection; 122 WeakMember<RTCPeerConnection> m_connection;
122 }; 123 };
123 124
124 } // namespace blink 125 } // namespace blink
125 126
126 #endif // RTCDataChannel_h 127 #endif // RTCDataChannel_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCDTMFToneChangeEvent.h ('k') | Source/modules/mediastream/RTCDataChannelEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698