OLD | NEW |
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 Loading... |
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 |
OLD | NEW |