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

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

Issue 1846893002: Interface with webrtc through encoded frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sergeyu comments 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 <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 class HostControlDispatcher; 23 class HostControlDispatcher;
24 class HostEventDispatcher; 24 class HostEventDispatcher;
25 25
26 class WebrtcConnectionToClient : public ConnectionToClient, 26 class WebrtcConnectionToClient : public ConnectionToClient,
27 public Session::EventHandler, 27 public Session::EventHandler,
28 public WebrtcTransport::EventHandler, 28 public WebrtcTransport::EventHandler,
29 public ChannelDispatcherBase::EventHandler { 29 public ChannelDispatcherBase::EventHandler {
30 public: 30 public:
31 WebrtcConnectionToClient( 31 WebrtcConnectionToClient(
32 scoped_ptr<Session> session, 32 scoped_ptr<Session> session,
33 scoped_refptr<protocol::TransportContext> transport_context); 33 scoped_refptr<protocol::TransportContext> transport_context,
34 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner);
34 ~WebrtcConnectionToClient() override; 35 ~WebrtcConnectionToClient() override;
35 36
36 // ConnectionToClient interface. 37 // ConnectionToClient interface.
37 void SetEventHandler( 38 void SetEventHandler(
38 ConnectionToClient::EventHandler* event_handler) override; 39 ConnectionToClient::EventHandler* event_handler) override;
39 Session* session() override; 40 Session* session() override;
40 void Disconnect(ErrorCode error) override; 41 void Disconnect(ErrorCode error) override;
41 void OnInputEventReceived(int64_t timestamp) override; 42 void OnInputEventReceived(int64_t timestamp) override;
42 scoped_ptr<VideoStream> StartVideoStream( 43 scoped_ptr<VideoStream> StartVideoStream(
43 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer) override; 44 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer) override;
(...skipping 17 matching lines...) Expand all
61 62
62 // ChannelDispatcherBase::EventHandler interface. 63 // ChannelDispatcherBase::EventHandler interface.
63 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; 64 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
64 65
65 private: 66 private:
66 base::ThreadChecker thread_checker_; 67 base::ThreadChecker thread_checker_;
67 68
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 scoped_ptr<WebrtcTransport> transport_;
Sergey Ulanov 2016/04/07 21:05:39 What's the reason you need this change? transport_
72 73
73 scoped_ptr<Session> session_; 74 scoped_ptr<Session> session_;
74 75
76 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
77
75 scoped_ptr<HostControlDispatcher> control_dispatcher_; 78 scoped_ptr<HostControlDispatcher> control_dispatcher_;
76 scoped_ptr<HostEventDispatcher> event_dispatcher_; 79 scoped_ptr<HostEventDispatcher> event_dispatcher_;
77 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

Powered by Google App Engine
This is Rietveld 408576698