| 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_PEER_CONNECTION_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // getStats takes ownership of request parameter. | 148 // getStats takes ownership of request parameter. |
| 149 virtual void getStats(LocalRTCStatsRequest* request); | 149 virtual void getStats(LocalRTCStatsRequest* request); |
| 150 | 150 |
| 151 // Calls GetStats on |native_peer_connection_|. | 151 // Calls GetStats on |native_peer_connection_|. |
| 152 void GetStats(webrtc::StatsObserver* observer, | 152 void GetStats(webrtc::StatsObserver* observer, |
| 153 webrtc::MediaStreamTrackInterface* track); | 153 webrtc::MediaStreamTrackInterface* track); |
| 154 | 154 |
| 155 PeerConnectionTracker* peer_connection_tracker(); | 155 PeerConnectionTracker* peer_connection_tracker(); |
| 156 private: | 156 private: |
| 157 webrtc::SessionDescriptionInterface* CreateNativeSessionDescription( | 157 webrtc::SessionDescriptionInterface* CreateNativeSessionDescription( |
| 158 const WebKit::WebRTCSessionDescription& description); | 158 const WebKit::WebRTCSessionDescription& description, |
| 159 webrtc::SdpParseError* error); |
| 159 | 160 |
| 160 // |client_| is a weak pointer, and is valid until stop() has returned. | 161 // |client_| is a weak pointer, and is valid until stop() has returned. |
| 161 WebKit::WebRTCPeerConnectionHandlerClient* client_; | 162 WebKit::WebRTCPeerConnectionHandlerClient* client_; |
| 162 | 163 |
| 163 WebKit::WebFrame* frame_; | 164 WebKit::WebFrame* frame_; |
| 164 | 165 |
| 165 PeerConnectionTracker* peer_connection_tracker_; | 166 PeerConnectionTracker* peer_connection_tracker_; |
| 166 | 167 |
| 167 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); | 168 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace content | 171 } // namespace content |
| 171 | 172 |
| 172 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 173 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| OLD | NEW |