OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_RTC_DATA_CHANNEL_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_DATA_CHANNEL_HANDLER_H_ |
6 #define CONTENT_RENDERER_MEDIA_RTC_DATA_CHANNEL_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_DATA_CHANNEL_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/threading/non_thread_safe.h" | 9 #include "base/threading/non_thread_safe.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" | 11 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCDataChannelHa
ndler.h" | 12 #include "third_party/WebKit/public/platform/WebRTCDataChannelHandler.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCDataChannelHa
ndlerClient.h" | 13 #include "third_party/WebKit/public/platform/WebRTCDataChannelHandlerClient.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 // RtcDataChannelHandler is a delegate for the RTC PeerConnection DataChannel | 17 // RtcDataChannelHandler is a delegate for the RTC PeerConnection DataChannel |
18 // API messages going between WebKit and native PeerConnection DataChannels in | 18 // API messages going between WebKit and native PeerConnection DataChannels in |
19 // libjingle. Instances of this class are owned by WebKit. | 19 // libjingle. Instances of this class are owned by WebKit. |
20 // WebKit call all of these methods on the main render thread. | 20 // WebKit call all of these methods on the main render thread. |
21 // Callbacks to the webrtc::DataChannelObserver implementation also occur on | 21 // Callbacks to the webrtc::DataChannelObserver implementation also occur on |
22 // the main render thread. | 22 // the main render thread. |
23 class CONTENT_EXPORT RtcDataChannelHandler | 23 class CONTENT_EXPORT RtcDataChannelHandler |
(...skipping 19 matching lines...) Expand all Loading... |
43 virtual void OnMessage(const webrtc::DataBuffer& buffer) OVERRIDE; | 43 virtual void OnMessage(const webrtc::DataBuffer& buffer) OVERRIDE; |
44 | 44 |
45 private: | 45 private: |
46 scoped_refptr<webrtc::DataChannelInterface> channel_; | 46 scoped_refptr<webrtc::DataChannelInterface> channel_; |
47 WebKit::WebRTCDataChannelHandlerClient* webkit_client_; | 47 WebKit::WebRTCDataChannelHandlerClient* webkit_client_; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace content | 50 } // namespace content |
51 | 51 |
52 #endif // CONTENT_RENDERER_MEDIA_RTC_DATA_CHANNEL_HANDLER_H_ | 52 #endif // CONTENT_RENDERER_MEDIA_RTC_DATA_CHANNEL_HANDLER_H_ |
OLD | NEW |