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

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

Issue 16305017: Removes the old createDataChannel and starts to use the new one with WebRTCDataChannelInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 13 matching lines...) Expand all
24 24
25 #ifndef RTCDataChannel_h 25 #ifndef RTCDataChannel_h
26 #define RTCDataChannel_h 26 #define RTCDataChannel_h
27 27
28 #include "bindings/v8/ScriptWrappable.h" 28 #include "bindings/v8/ScriptWrappable.h"
29 #include "core/dom/EventTarget.h" 29 #include "core/dom/EventTarget.h"
30 #include "core/platform/Timer.h" 30 #include "core/platform/Timer.h"
31 #include "core/platform/mediastream/RTCDataChannelHandlerClient.h" 31 #include "core/platform/mediastream/RTCDataChannelHandlerClient.h"
32 #include "wtf/RefCounted.h" 32 #include "wtf/RefCounted.h"
33 33
34 namespace WebKit {
35 struct WebRTCDataChannelInit;
36 }
37
34 namespace WebCore { 38 namespace WebCore {
35 39
36 class Blob; 40 class Blob;
37 class RTCDataChannelHandler; 41 class RTCDataChannelHandler;
38 class RTCPeerConnectionHandler; 42 class RTCPeerConnectionHandler;
39 43
40 class RTCDataChannel : public RefCounted<RTCDataChannel>, public ScriptWrappable , public EventTarget, public RTCDataChannelHandlerClient { 44 class RTCDataChannel : public RefCounted<RTCDataChannel>, public ScriptWrappable , public EventTarget, public RTCDataChannelHandlerClient {
41 public: 45 public:
42 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, RTCPeerCon nectionHandler*, const String& label, bool reliable, ExceptionCode&);
43 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&);
44 ~RTCDataChannel(); 48 ~RTCDataChannel();
45 49
46 String label() const; 50 String label() const;
47 bool reliable() const; 51 bool reliable() const;
48 String readyState() const; 52 String readyState() const;
49 unsigned long bufferedAmount() const; 53 unsigned long bufferedAmount() const;
50 54
51 String binaryType() const; 55 String binaryType() const;
52 void setBinaryType(const String&, ExceptionCode&); 56 void setBinaryType(const String&, ExceptionCode&);
53 57
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 }; 107 };
104 BinaryType m_binaryType; 108 BinaryType m_binaryType;
105 109
106 Timer<RTCDataChannel> m_scheduledEventTimer; 110 Timer<RTCDataChannel> m_scheduledEventTimer;
107 Vector<RefPtr<Event> > m_scheduledEvents; 111 Vector<RefPtr<Event> > m_scheduledEvents;
108 }; 112 };
109 113
110 } // namespace WebCore 114 } // namespace WebCore
111 115
112 #endif // RTCDataChannel_h 116 #endif // RTCDataChannel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698