| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Mockable wrapper for WebKit::WebRTCStatsRequest | 46 // Mockable wrapper for WebKit::WebRTCStatsRequest |
| 47 class CONTENT_EXPORT LocalRTCStatsRequest | 47 class CONTENT_EXPORT LocalRTCStatsRequest |
| 48 : public talk_base::RefCountInterface { | 48 : public talk_base::RefCountInterface { |
| 49 public: | 49 public: |
| 50 explicit LocalRTCStatsRequest(WebKit::WebRTCStatsRequest impl); | 50 explicit LocalRTCStatsRequest(WebKit::WebRTCStatsRequest impl); |
| 51 // Constructor for testing. | 51 // Constructor for testing. |
| 52 LocalRTCStatsRequest(); | 52 LocalRTCStatsRequest(); |
| 53 | 53 |
| 54 virtual bool hasSelector() const; | 54 virtual bool hasSelector() const; |
| 55 virtual WebKit::WebMediaStreamDescriptor stream() const; | 55 virtual WebKit::WebMediaStream stream() const; |
| 56 virtual WebKit::WebMediaStreamComponent component() const; | 56 virtual WebKit::WebMediaStreamTrack component() const; |
| 57 virtual void requestSucceeded(const LocalRTCStatsResponse* response); | 57 virtual void requestSucceeded(const LocalRTCStatsResponse* response); |
| 58 virtual scoped_refptr<LocalRTCStatsResponse> createResponse(); | 58 virtual scoped_refptr<LocalRTCStatsResponse> createResponse(); |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 virtual ~LocalRTCStatsRequest(); | 61 virtual ~LocalRTCStatsRequest(); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 WebKit::WebRTCStatsRequest impl_; | 64 WebKit::WebRTCStatsRequest impl_; |
| 65 talk_base::scoped_refptr<LocalRTCStatsResponse> response_; | 65 talk_base::scoped_refptr<LocalRTCStatsResponse> response_; |
| 66 }; | 66 }; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 OVERRIDE; | 110 OVERRIDE; |
| 111 virtual WebKit::WebRTCSessionDescription remoteDescription() | 111 virtual WebKit::WebRTCSessionDescription remoteDescription() |
| 112 OVERRIDE; | 112 OVERRIDE; |
| 113 virtual bool updateICE( | 113 virtual bool updateICE( |
| 114 const WebKit::WebRTCConfiguration& server_configuration, | 114 const WebKit::WebRTCConfiguration& server_configuration, |
| 115 const WebKit::WebMediaConstraints& options) OVERRIDE; | 115 const WebKit::WebMediaConstraints& options) OVERRIDE; |
| 116 virtual bool addICECandidate( | 116 virtual bool addICECandidate( |
| 117 const WebKit::WebRTCICECandidate& candidate) OVERRIDE; | 117 const WebKit::WebRTCICECandidate& candidate) OVERRIDE; |
| 118 | 118 |
| 119 virtual bool addStream( | 119 virtual bool addStream( |
| 120 const WebKit::WebMediaStreamDescriptor& stream, | 120 const WebKit::WebMediaStream& stream, |
| 121 const WebKit::WebMediaConstraints& options) OVERRIDE; | 121 const WebKit::WebMediaConstraints& options) OVERRIDE; |
| 122 virtual void removeStream( | 122 virtual void removeStream( |
| 123 const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE; | 123 const WebKit::WebMediaStream& stream) OVERRIDE; |
| 124 virtual void getStats( | 124 virtual void getStats( |
| 125 const WebKit::WebRTCStatsRequest& request) OVERRIDE; | 125 const WebKit::WebRTCStatsRequest& request) OVERRIDE; |
| 126 virtual WebKit::WebRTCDataChannelHandler* createDataChannel( | 126 virtual WebKit::WebRTCDataChannelHandler* createDataChannel( |
| 127 const WebKit::WebString& label, bool reliable) OVERRIDE; | 127 const WebKit::WebString& label, bool reliable) OVERRIDE; |
| 128 virtual void stop() OVERRIDE; | 128 virtual void stop() OVERRIDE; |
| 129 | 129 |
| 130 // webrtc::PeerConnectionObserver implementation | 130 // webrtc::PeerConnectionObserver implementation |
| 131 virtual void OnError() OVERRIDE; | 131 virtual void OnError() OVERRIDE; |
| 132 virtual void OnStateChange(StateType state_changed) OVERRIDE; | 132 virtual void OnStateChange(StateType state_changed) OVERRIDE; |
| 133 virtual void OnAddStream(webrtc::MediaStreamInterface* stream) OVERRIDE; | 133 virtual void OnAddStream(webrtc::MediaStreamInterface* stream) OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 151 WebKit::WebRTCPeerConnectionHandlerClient* client_; | 151 WebKit::WebRTCPeerConnectionHandlerClient* client_; |
| 152 | 152 |
| 153 WebKit::WebFrame* frame_; | 153 WebKit::WebFrame* frame_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); | 155 DISALLOW_COPY_AND_ASSIGN(RTCPeerConnectionHandler); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace content | 158 } // namespace content |
| 159 | 159 |
| 160 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ | 160 #endif // CONTENT_RENDERER_MEDIA_RTC_PEER_CONNECTION_HANDLER_H_ |
| OLD | NEW |