| 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_CONNECTION_TO_CLIENT_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" |
| 14 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 15 #include "remoting/protocol/channel_dispatcher_base.h" | 16 #include "remoting/protocol/channel_dispatcher_base.h" |
| 16 #include "remoting/protocol/connection_to_client.h" | 17 #include "remoting/protocol/connection_to_client.h" |
| 17 #include "remoting/protocol/session.h" | 18 #include "remoting/protocol/session.h" |
| 18 #include "remoting/protocol/webrtc_transport.h" | 19 #include "remoting/protocol/webrtc_transport.h" |
| 19 | 20 |
| 20 namespace remoting { | 21 namespace remoting { |
| 21 namespace protocol { | 22 namespace protocol { |
| 22 | 23 |
| 23 class HostControlDispatcher; | 24 class HostControlDispatcher; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Event handler for handling events sent from this object. | 69 // Event handler for handling events sent from this object. |
| 69 ConnectionToClient::EventHandler* event_handler_ = nullptr; | 70 ConnectionToClient::EventHandler* event_handler_ = nullptr; |
| 70 | 71 |
| 71 WebrtcTransport transport_; | 72 WebrtcTransport transport_; |
| 72 | 73 |
| 73 std::unique_ptr<Session> session_; | 74 std::unique_ptr<Session> session_; |
| 74 | 75 |
| 75 std::unique_ptr<HostControlDispatcher> control_dispatcher_; | 76 std::unique_ptr<HostControlDispatcher> control_dispatcher_; |
| 76 std::unique_ptr<HostEventDispatcher> event_dispatcher_; | 77 std::unique_ptr<HostEventDispatcher> event_dispatcher_; |
| 77 | 78 |
| 79 base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_; |
| 80 |
| 78 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); | 81 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 } // namespace protocol | 84 } // namespace protocol |
| 82 } // namespace remoting | 85 } // namespace remoting |
| 83 | 86 |
| 84 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ | 87 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
| OLD | NEW |