Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: remoting/protocol/webrtc_connection_to_client.h

Issue 1852033002: Fix WebRTC transport to use single offer-answer exchange instead of two. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_cast
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/protocol_mock_objects.h ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698