| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/platform/mediastream/RTCDataChannelHandlerClient.h" | 28 #include "core/platform/mediastream/RTCDataChannelHandlerClient.h" |
| 29 #include "public/platform/WebRTCDataChannelHandler.h" | 29 #include "public/platform/WebRTCDataChannelHandler.h" |
| 30 #include "public/platform/WebRTCDataChannelHandlerClient.h" | 30 #include "public/platform/WebRTCDataChannelHandlerClient.h" |
| 31 #include "wtf/OwnPtr.h" | 31 #include "wtf/OwnPtr.h" |
| 32 #include "wtf/PassOwnPtr.h" | 32 #include "wtf/PassOwnPtr.h" |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace WebCore { |
| 35 | 35 |
| 36 class RTCDataChannelHandlerClient; | 36 class RTCDataChannelHandlerClient; |
| 37 | 37 |
| 38 class RTCDataChannelHandler : public blink::WebRTCDataChannelHandlerClient { | 38 class RTCDataChannelHandler FINAL : public blink::WebRTCDataChannelHandlerClient
{ |
| 39 public: | 39 public: |
| 40 static PassOwnPtr<RTCDataChannelHandler> create(blink::WebRTCDataChannelHand
ler*); | 40 static PassOwnPtr<RTCDataChannelHandler> create(blink::WebRTCDataChannelHand
ler*); |
| 41 virtual ~RTCDataChannelHandler(); | 41 virtual ~RTCDataChannelHandler(); |
| 42 | 42 |
| 43 void setClient(RTCDataChannelHandlerClient*); | 43 void setClient(RTCDataChannelHandlerClient*); |
| 44 | 44 |
| 45 String label() const; | 45 String label() const; |
| 46 | 46 |
| 47 // DEPRECATED | 47 // DEPRECATED |
| 48 bool isReliable() const; | 48 bool isReliable() const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 68 private: | 68 private: |
| 69 explicit RTCDataChannelHandler(blink::WebRTCDataChannelHandler*); | 69 explicit RTCDataChannelHandler(blink::WebRTCDataChannelHandler*); |
| 70 | 70 |
| 71 OwnPtr<blink::WebRTCDataChannelHandler> m_webHandler; | 71 OwnPtr<blink::WebRTCDataChannelHandler> m_webHandler; |
| 72 RTCDataChannelHandlerClient* m_client; | 72 RTCDataChannelHandlerClient* m_client; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace WebCore | 75 } // namespace WebCore |
| 76 | 76 |
| 77 #endif // RTCDataChannelHandler_h | 77 #endif // RTCDataChannelHandler_h |
| OLD | NEW |