| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
| 17 #include "crypto/hmac.h" | 17 #include "crypto/hmac.h" |
| 18 #include "remoting/protocol/transport.h" | 18 #include "remoting/protocol/transport.h" |
| 19 #include "remoting/protocol/webrtc_data_stream_adapter.h" | 19 #include "remoting/protocol/webrtc_data_stream_adapter.h" |
| 20 #include "remoting/protocol/webrtc_dummy_video_encoder.h" | 20 #include "remoting/protocol/webrtc_dummy_video_encoder.h" |
| 21 #include "remoting/signaling/signal_strategy.h" | 21 #include "remoting/signaling/signal_strategy.h" |
| 22 #include "third_party/webrtc/api/peerconnectioninterface.h" | 22 #include "third_party/webrtc/api/peerconnectioninterface.h" |
| 23 | 23 |
| 24 namespace remoting { | 24 namespace remoting { |
| 25 namespace protocol { | 25 namespace protocol { |
| 26 | 26 |
| 27 class TransportContext; | 27 class TransportContext; |
| 28 class MessagePipe; | 28 class MessagePipe; |
| 29 class WebrtcAudioModule; |
| 29 | 30 |
| 30 class WebrtcTransport : public Transport { | 31 class WebrtcTransport : public Transport { |
| 31 public: | 32 public: |
| 32 class EventHandler { | 33 class EventHandler { |
| 33 public: | 34 public: |
| 34 // Called after |peer_connection| has been created but before handshake. The | 35 // Called after |peer_connection| has been created but before handshake. The |
| 35 // handler should create data channels and media streams. Renegotiation will | 36 // handler should create data channels and media streams. Renegotiation will |
| 36 // be required in two cases after this method returns: | 37 // be required in two cases after this method returns: |
| 37 // 1. When the first data channel is created, if it wasn't created by this | 38 // 1. When the first data channel is created, if it wasn't created by this |
| 38 // event handler. | 39 // event handler. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 145 |
| 145 base::WeakPtrFactory<WebrtcTransport> weak_factory_; | 146 base::WeakPtrFactory<WebrtcTransport> weak_factory_; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(WebrtcTransport); | 148 DISALLOW_COPY_AND_ASSIGN(WebrtcTransport); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace protocol | 151 } // namespace protocol |
| 151 } // namespace remoting | 152 } // namespace remoting |
| 152 | 153 |
| 153 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 154 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
| OLD | NEW |