| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ipc/ipc_platform_file.h" | 23 #include "ipc/ipc_platform_file.h" |
| 24 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 24 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
| 25 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h" | 25 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h" |
| 26 #include "third_party/WebKit/public/platform/WebRTCStatsRequest.h" | 26 #include "third_party/WebKit/public/platform/WebRTCStatsRequest.h" |
| 27 #include "third_party/WebKit/public/platform/WebRTCStatsResponse.h" | 27 #include "third_party/WebKit/public/platform/WebRTCStatsResponse.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 class WebFrame; | 30 class WebFrame; |
| 31 class WebRTCAnswerOptions; | 31 class WebRTCAnswerOptions; |
| 32 class WebRTCDataChannelHandler; | 32 class WebRTCDataChannelHandler; |
| 33 class WebRTCLegacyStats; |
| 33 class WebRTCOfferOptions; | 34 class WebRTCOfferOptions; |
| 34 class WebRTCPeerConnectionHandlerClient; | 35 class WebRTCPeerConnectionHandlerClient; |
| 35 class WebRTCStats; | |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace content { | 38 namespace content { |
| 39 | 39 |
| 40 class PeerConnectionDependencyFactory; | 40 class PeerConnectionDependencyFactory; |
| 41 class PeerConnectionTracker; | 41 class PeerConnectionTracker; |
| 42 class RemoteMediaStreamImpl; | 42 class RemoteMediaStreamImpl; |
| 43 class RtcDataChannelHandler; | 43 class RtcDataChannelHandler; |
| 44 class WebRtcMediaStreamAdapter; | 44 class WebRtcMediaStreamAdapter; |
| 45 | 45 |
| 46 // Mockable wrapper for blink::WebRTCStatsResponse | 46 // Mockable wrapper for blink::WebRTCStatsResponse |
| 47 class CONTENT_EXPORT LocalRTCStatsResponse | 47 class CONTENT_EXPORT LocalRTCStatsResponse |
| 48 : public NON_EXPORTED_BASE(rtc::RefCountInterface) { | 48 : public NON_EXPORTED_BASE(rtc::RefCountInterface) { |
| 49 public: | 49 public: |
| 50 explicit LocalRTCStatsResponse(const blink::WebRTCStatsResponse& impl) | 50 explicit LocalRTCStatsResponse(const blink::WebRTCStatsResponse& impl) |
| 51 : impl_(impl) { | 51 : impl_(impl) { |
| 52 } | 52 } |
| 53 | 53 |
| 54 virtual blink::WebRTCStatsResponse webKitStatsResponse() const; | 54 virtual blink::WebRTCStatsResponse webKitStatsResponse() const; |
| 55 virtual void addStats(const blink::WebRTCStats& stats); | 55 virtual void addStats(const blink::WebRTCLegacyStats& stats); |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 ~LocalRTCStatsResponse() override {} | 58 ~LocalRTCStatsResponse() override {} |
| 59 // Constructor for creating mocks. | 59 // Constructor for creating mocks. |
| 60 LocalRTCStatsResponse() {} | 60 LocalRTCStatsResponse() {} |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 blink::WebRTCStatsResponse impl_; | 63 blink::WebRTCStatsResponse impl_; |
| 64 }; | 64 }; |
| 65 | 65 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; | 286 bool ice_state_seen_[webrtc::PeerConnectionInterface::kIceConnectionMax] = {}; |
| 287 | 287 |
| 288 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; | 288 base::WeakPtrFactory<RTCPeerConnectionHandler> weak_factory_; |
| 289 | 289 |
| 290 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); | 290 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } // namespace content | 293 } // namespace content |
| 294 | 294 |
| 295 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 295 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| OLD | NEW |