| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PEERCONNECTION_TRACKER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ | 6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "content/public/renderer/render_process_observer.h" | 10 #include "content/public/renderer/render_process_observer.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamDescr
iptor.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStream.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCPeerConnectio
nHandlerClient.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCPeerConnectio
nHandlerClient.h" |
| 13 #include "third_party/libjingle/source/talk/app/webrtc/jsep.h" | 13 #include "third_party/libjingle/source/talk/app/webrtc/jsep.h" |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebFrame; | 16 class WebFrame; |
| 17 class WebRTCICECandidate; | 17 class WebRTCICECandidate; |
| 18 class WebString; | 18 class WebString; |
| 19 } // namespace WebKit | 19 } // namespace WebKit |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const RTCMediaConstraints& options); | 89 const RTCMediaConstraints& options); |
| 90 | 90 |
| 91 // Sends an update when an Ice candidate is added. | 91 // Sends an update when an Ice candidate is added. |
| 92 void TrackAddIceCandidate( | 92 void TrackAddIceCandidate( |
| 93 RTCPeerConnectionHandler* pc_handler, | 93 RTCPeerConnectionHandler* pc_handler, |
| 94 const WebKit::WebRTCICECandidate& candidate, Source source); | 94 const WebKit::WebRTCICECandidate& candidate, Source source); |
| 95 | 95 |
| 96 // Sends an update when a media stream is added. | 96 // Sends an update when a media stream is added. |
| 97 void TrackAddStream( | 97 void TrackAddStream( |
| 98 RTCPeerConnectionHandler* pc_handler, | 98 RTCPeerConnectionHandler* pc_handler, |
| 99 const WebKit::WebMediaStreamDescriptor& stream, Source source); | 99 const WebKit::WebMediaStream& stream, Source source); |
| 100 | 100 |
| 101 // Sends an update when a media stream is removed. | 101 // Sends an update when a media stream is removed. |
| 102 void TrackRemoveStream( | 102 void TrackRemoveStream( |
| 103 RTCPeerConnectionHandler* pc_handler, | 103 RTCPeerConnectionHandler* pc_handler, |
| 104 const WebKit::WebMediaStreamDescriptor& stream, Source source); | 104 const WebKit::WebMediaStream& stream, Source source); |
| 105 | 105 |
| 106 // Sends an update when OnIceComplete is called. | 106 // Sends an update when OnIceComplete is called. |
| 107 void TrackOnIceComplete(RTCPeerConnectionHandler* pc_handler); | 107 void TrackOnIceComplete(RTCPeerConnectionHandler* pc_handler); |
| 108 | 108 |
| 109 // Sends an update when a DataChannel is created. | 109 // Sends an update when a DataChannel is created. |
| 110 void TrackCreateDataChannel( | 110 void TrackCreateDataChannel( |
| 111 RTCPeerConnectionHandler* pc_handler, | 111 RTCPeerConnectionHandler* pc_handler, |
| 112 const webrtc::DataChannelInterface* data_channel, Source source); | 112 const webrtc::DataChannelInterface* data_channel, Source source); |
| 113 | 113 |
| 114 // Sends an update when a PeerConnection has been stopped. | 114 // Sends an update when a PeerConnection has been stopped. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 144 | 144 |
| 145 // This keeps track of the next available local ID. | 145 // This keeps track of the next available local ID. |
| 146 int next_lid_; | 146 int next_lid_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); | 148 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace content | 151 } // namespace content |
| 152 | 152 |
| 153 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ | 153 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ |
| OLD | NEW |