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

Side by Side Diff: Source/core/platform/mediastream/RTCDataChannelHandler.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
« no previous file with comments | « no previous file | Source/core/platform/mediastream/RTCDataChannelHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 36
37 class RTCDataChannelHandlerClient; 37 class RTCDataChannelHandlerClient;
38 38
39 class RTCDataChannelHandler : public WebKit::WebRTCDataChannelHandlerClient { 39 class RTCDataChannelHandler : public WebKit::WebRTCDataChannelHandlerClient {
40 public: 40 public:
41 static PassOwnPtr<RTCDataChannelHandler> create(WebKit::WebRTCDataChannelHan dler*); 41 static PassOwnPtr<RTCDataChannelHandler> create(WebKit::WebRTCDataChannelHan dler*);
42 virtual ~RTCDataChannelHandler(); 42 virtual ~RTCDataChannelHandler();
43 43
44 void setClient(RTCDataChannelHandlerClient*); 44 void setClient(RTCDataChannelHandlerClient*);
45 45
46 String label(); 46 String label() const;
47 bool isReliable(); 47
48 // DEPRECATED
49 bool isReliable() const;
50
51 bool ordered() const;
52 unsigned short maxRetransmitTime() const;
53 unsigned short maxRetransmits() const;
54 String protocol() const;
55 bool negotiated() const;
56 unsigned short id() const;
57
48 unsigned long bufferedAmount(); 58 unsigned long bufferedAmount();
49 bool sendStringData(const String&); 59 bool sendStringData(const String&);
50 bool sendRawData(const char*, size_t); 60 bool sendRawData(const char*, size_t);
51 void close(); 61 void close();
52 62
53 // WebKit::WebRTCDataChannelHandlerClient implementation. 63 // WebKit::WebRTCDataChannelHandlerClient implementation.
54 virtual void didChangeReadyState(ReadyState) const OVERRIDE; 64 virtual void didChangeReadyState(ReadyState) const OVERRIDE;
55 virtual void didReceiveStringData(const WebKit::WebString&) const OVERRIDE; 65 virtual void didReceiveStringData(const WebKit::WebString&) const OVERRIDE;
56 virtual void didReceiveRawData(const char*, size_t) const OVERRIDE; 66 virtual void didReceiveRawData(const char*, size_t) const OVERRIDE;
57 virtual void didDetectError() const OVERRIDE; 67 virtual void didDetectError() const OVERRIDE;
58 68
59 private: 69 private:
60 explicit RTCDataChannelHandler(WebKit::WebRTCDataChannelHandler*); 70 explicit RTCDataChannelHandler(WebKit::WebRTCDataChannelHandler*);
61 71
62 OwnPtr<WebKit::WebRTCDataChannelHandler> m_webHandler; 72 OwnPtr<WebKit::WebRTCDataChannelHandler> m_webHandler;
63 RTCDataChannelHandlerClient* m_client; 73 RTCDataChannelHandlerClient* m_client;
64 }; 74 };
65 75
66 } // namespace WebCore 76 } // namespace WebCore
67 77
68 #endif // RTCDataChannelHandler_h 78 #endif // RTCDataChannelHandler_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/mediastream/RTCDataChannelHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698