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

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

Issue 2413553003: Add InputEventTimestampSource interface. (Closed)
Patch Set: msvc compilation Created 4 years, 2 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
« no previous file with comments | « remoting/protocol/video_stream.h ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void OnWebrtcTransportMediaStreamAdded( 63 void OnWebrtcTransportMediaStreamAdded(
64 scoped_refptr<webrtc::MediaStreamInterface> stream) override; 64 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
65 void OnWebrtcTransportMediaStreamRemoved( 65 void OnWebrtcTransportMediaStreamRemoved(
66 scoped_refptr<webrtc::MediaStreamInterface> stream) override; 66 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
67 67
68 // ChannelDispatcherBase::EventHandler interface. 68 // ChannelDispatcherBase::EventHandler interface.
69 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; 69 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
70 void OnChannelClosed(ChannelDispatcherBase* channel_dispatcher) override; 70 void OnChannelClosed(ChannelDispatcherBase* channel_dispatcher) override;
71 71
72 private: 72 private:
73 // Callback for the event dispatcher.
74 void OnInputEventReceived(int64_t timestamp);
75
76 base::ThreadChecker thread_checker_; 73 base::ThreadChecker thread_checker_;
77 74
78 // Event handler for handling events sent from this object. 75 // Event handler for handling events sent from this object.
79 ConnectionToClient::EventHandler* event_handler_ = nullptr; 76 ConnectionToClient::EventHandler* event_handler_ = nullptr;
80 77
81 std::unique_ptr<WebrtcTransport> transport_; 78 std::unique_ptr<WebrtcTransport> transport_;
82 79
83 std::unique_ptr<Session> session_; 80 std::unique_ptr<Session> session_;
84 81
85 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; 82 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
86 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; 83 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_;
87 84
88 std::unique_ptr<HostControlDispatcher> control_dispatcher_; 85 std::unique_ptr<HostControlDispatcher> control_dispatcher_;
89 std::unique_ptr<HostEventDispatcher> event_dispatcher_; 86 std::unique_ptr<HostEventDispatcher> event_dispatcher_;
90 base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_; 87 base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_;
91 88
92 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); 89 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient);
93 }; 90 };
94 91
95 } // namespace protocol 92 } // namespace protocol
96 } // namespace remoting 93 } // namespace remoting
97 94
98 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ 95 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/protocol/video_stream.h ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698