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

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

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 23 matching lines...) Expand all
34 namespace WebKit { 34 namespace WebKit {
35 struct WebRTCDataChannelInit; 35 struct WebRTCDataChannelInit;
36 } 36 }
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class Blob; 40 class Blob;
41 class RTCDataChannelHandler; 41 class RTCDataChannelHandler;
42 class RTCPeerConnectionHandler; 42 class RTCPeerConnectionHandler;
43 43
44 class RTCDataChannel : public RefCounted<RTCDataChannel>, public ScriptWrappable , public EventTarget, public RTCDataChannelHandlerClient { 44 class RTCDataChannel : public EventTarget, public RefCounted<RTCDataChannel>, pu blic ScriptWrappable, public RTCDataChannelHandlerClient {
45 public: 45 public:
46 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, PassOwnPtr <RTCDataChannelHandler>); 46 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, PassOwnPtr <RTCDataChannelHandler>);
47 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, RTCPeerCon nectionHandler*, const String& label, const WebKit::WebRTCDataChannelInit&, Exce ptionCode&); 47 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, RTCPeerCon nectionHandler*, const String& label, const WebKit::WebRTCDataChannelInit&, Exce ptionCode&);
48 ~RTCDataChannel(); 48 ~RTCDataChannel();
49 49
50 String label() const; 50 String label() const;
51 bool reliable() const; 51 bool reliable() const;
52 String readyState() const; 52 String readyState() const;
53 unsigned long bufferedAmount() const; 53 unsigned long bufferedAmount() const;
54 54
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 }; 107 };
108 BinaryType m_binaryType; 108 BinaryType m_binaryType;
109 109
110 Timer<RTCDataChannel> m_scheduledEventTimer; 110 Timer<RTCDataChannel> m_scheduledEventTimer;
111 Vector<RefPtr<Event> > m_scheduledEvents; 111 Vector<RefPtr<Event> > m_scheduledEvents;
112 }; 112 };
113 113
114 } // namespace WebCore 114 } // namespace WebCore
115 115
116 #endif // RTCDataChannel_h 116 #endif // RTCDataChannel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698