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

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

Issue 21350002: MediaStream API: Update RTCDataChannel to match the specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class RTCDataChannelHandler; 42 class RTCDataChannelHandler;
43 class RTCPeerConnectionHandler; 43 class RTCPeerConnectionHandler;
44 44
45 class RTCDataChannel : public RefCounted<RTCDataChannel>, public ScriptWrappable , public EventTarget, public RTCDataChannelHandlerClient { 45 class RTCDataChannel : public RefCounted<RTCDataChannel>, public ScriptWrappable , public EventTarget, public RTCDataChannelHandlerClient {
46 public: 46 public:
47 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, PassOwnPtr <RTCDataChannelHandler>); 47 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, PassOwnPtr <RTCDataChannelHandler>);
48 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, RTCPeerCon nectionHandler*, const String& label, const WebKit::WebRTCDataChannelInit&, Exce ptionState&); 48 static PassRefPtr<RTCDataChannel> create(ScriptExecutionContext*, RTCPeerCon nectionHandler*, const String& label, const WebKit::WebRTCDataChannelInit&, Exce ptionState&);
49 ~RTCDataChannel(); 49 ~RTCDataChannel();
50 50
51 String label() const; 51 String label() const;
52
53 // DEPRECATED
52 bool reliable() const; 54 bool reliable() const;
55
56 bool ordered() const;
57 unsigned short maxRetransmitTime() const;
58 unsigned short maxRetransmits() const;
59 String protocol() const;
60 bool negotiated() const;
61 unsigned short id() const;
53 String readyState() const; 62 String readyState() const;
54 unsigned long bufferedAmount() const; 63 unsigned long bufferedAmount() const;
55 64
56 String binaryType() const; 65 String binaryType() const;
57 void setBinaryType(const String&, ExceptionState&); 66 void setBinaryType(const String&, ExceptionState&);
58 67
59 void send(const String&, ExceptionState&); 68 void send(const String&, ExceptionState&);
60 void send(PassRefPtr<ArrayBuffer>, ExceptionState&); 69 void send(PassRefPtr<ArrayBuffer>, ExceptionState&);
61 void send(PassRefPtr<ArrayBufferView>, ExceptionState&); 70 void send(PassRefPtr<ArrayBufferView>, ExceptionState&);
62 void send(PassRefPtr<Blob>, ExceptionState&); 71 void send(PassRefPtr<Blob>, ExceptionState&);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 }; 117 };
109 BinaryType m_binaryType; 118 BinaryType m_binaryType;
110 119
111 Timer<RTCDataChannel> m_scheduledEventTimer; 120 Timer<RTCDataChannel> m_scheduledEventTimer;
112 Vector<RefPtr<Event> > m_scheduledEvents; 121 Vector<RefPtr<Event> > m_scheduledEvents;
113 }; 122 };
114 123
115 } // namespace WebCore 124 } // namespace WebCore
116 125
117 #endif // RTCDataChannel_h 126 #endif // RTCDataChannel_h
OLDNEW
« no previous file with comments | « Source/core/platform/mediastream/RTCDataChannelHandler.cpp ('k') | Source/modules/mediastream/RTCDataChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698