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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // The |pc_handler| is the handler object associated with the PeerConnection, | 81 // The |pc_handler| is the handler object associated with the PeerConnection, |
82 // the |constraints| is the media constraints used to create the offer/answer. | 82 // the |constraints| is the media constraints used to create the offer/answer. |
83 virtual void TrackCreateOffer(RTCPeerConnectionHandler* pc_handler, | 83 virtual void TrackCreateOffer(RTCPeerConnectionHandler* pc_handler, |
84 const RTCMediaConstraints& constraints); | 84 const RTCMediaConstraints& constraints); |
85 virtual void TrackCreateAnswer(RTCPeerConnectionHandler* pc_handler, | 85 virtual void TrackCreateAnswer(RTCPeerConnectionHandler* pc_handler, |
86 const RTCMediaConstraints& constraints); | 86 const RTCMediaConstraints& constraints); |
87 | 87 |
88 // Sends an update when setLocalDescription or setRemoteDescription is called. | 88 // Sends an update when setLocalDescription or setRemoteDescription is called. |
89 virtual void TrackSetSessionDescription( | 89 virtual void TrackSetSessionDescription( |
90 RTCPeerConnectionHandler* pc_handler, | 90 RTCPeerConnectionHandler* pc_handler, |
91 const blink::WebRTCSessionDescription& desc, Source source); | 91 const std::string& sdp, const std::string& type, Source source); |
92 | 92 |
93 // Sends an update when Ice candidates are updated. | 93 // Sends an update when Ice candidates are updated. |
94 virtual void TrackUpdateIce( | 94 virtual void TrackUpdateIce( |
95 RTCPeerConnectionHandler* pc_handler, | 95 RTCPeerConnectionHandler* pc_handler, |
96 const webrtc::PeerConnectionInterface::RTCConfiguration& config, | 96 const webrtc::PeerConnectionInterface::RTCConfiguration& config, |
97 const RTCMediaConstraints& options); | 97 const RTCMediaConstraints& options); |
98 | 98 |
99 // Sends an update when an Ice candidate is added. | 99 // Sends an update when an Ice candidate is added. |
100 virtual void TrackAddIceCandidate( | 100 virtual void TrackAddIceCandidate( |
101 RTCPeerConnectionHandler* pc_handler, | 101 RTCPeerConnectionHandler* pc_handler, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // This keeps track of the next available local ID. | 178 // This keeps track of the next available local ID. |
179 int next_lid_; | 179 int next_lid_; |
180 base::ThreadChecker main_thread_; | 180 base::ThreadChecker main_thread_; |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); | 182 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); |
183 }; | 183 }; |
184 | 184 |
185 } // namespace content | 185 } // namespace content |
186 | 186 |
187 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ | 187 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ |
OLD | NEW |