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

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

Issue 577473002: Simplify VideoReader and VideoWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONNECTION_TO_HOST_H_ 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 class AudioStub; 35 class AudioStub;
36 class Authenticator; 36 class Authenticator;
37 class ClientControlDispatcher; 37 class ClientControlDispatcher;
38 class ClientEventDispatcher; 38 class ClientEventDispatcher;
39 class ClientStub; 39 class ClientStub;
40 class ClipboardStub; 40 class ClipboardStub;
41 class HostStub; 41 class HostStub;
42 class InputStub; 42 class InputStub;
43 class SessionConfig; 43 class SessionConfig;
44 class TransportFactory; 44 class TransportFactory;
45 class VideoReader; 45 class ClientVideoDispatcher;
46 class VideoStub; 46 class VideoStub;
47 47
48 class ConnectionToHost : public SignalStrategy::Listener, 48 class ConnectionToHost : public SignalStrategy::Listener,
49 public SessionManager::Listener, 49 public SessionManager::Listener,
50 public Session::EventHandler, 50 public Session::EventHandler,
51 public base::NonThreadSafe { 51 public base::NonThreadSafe {
52 public: 52 public:
53 // The UI implementations maintain corresponding definitions of this 53 // The UI implementations maintain corresponding definitions of this
54 // enumeration in webapp/client_session.js and 54 // enumeration in webapp/client_session.js and
55 // android/java/src/org/chromium/chromoting/jni/JniInterface.java. Be sure to 55 // android/java/src/org/chromium/chromoting/jni/JniInterface.java. Be sure to
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Stub for incoming messages. 166 // Stub for incoming messages.
167 ClientStub* client_stub_; 167 ClientStub* client_stub_;
168 ClipboardStub* clipboard_stub_; 168 ClipboardStub* clipboard_stub_;
169 AudioStub* audio_stub_; 169 AudioStub* audio_stub_;
170 170
171 SignalStrategy* signal_strategy_; 171 SignalStrategy* signal_strategy_;
172 scoped_ptr<SessionManager> session_manager_; 172 scoped_ptr<SessionManager> session_manager_;
173 scoped_ptr<Session> session_; 173 scoped_ptr<Session> session_;
174 scoped_ptr<MonitoredVideoStub> monitored_video_stub_; 174 scoped_ptr<MonitoredVideoStub> monitored_video_stub_;
175 175
176 scoped_ptr<VideoReader> video_reader_; 176 scoped_ptr<ClientVideoDispatcher> video_dispatcher_;
177 scoped_ptr<AudioReader> audio_reader_; 177 scoped_ptr<AudioReader> audio_reader_;
178 scoped_ptr<ClientControlDispatcher> control_dispatcher_; 178 scoped_ptr<ClientControlDispatcher> control_dispatcher_;
179 scoped_ptr<ClientEventDispatcher> event_dispatcher_; 179 scoped_ptr<ClientEventDispatcher> event_dispatcher_;
180 ClipboardFilter clipboard_forwarder_; 180 ClipboardFilter clipboard_forwarder_;
181 InputFilter event_forwarder_; 181 InputFilter event_forwarder_;
182 182
183 // Internal state of the connection. 183 // Internal state of the connection.
184 State state_; 184 State state_;
185 ErrorCode error_; 185 ErrorCode error_;
186 186
187 private: 187 private:
188 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); 188 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost);
189 }; 189 };
190 190
191 } // namespace protocol 191 } // namespace protocol
192 } // namespace remoting 192 } // namespace remoting
193 193
194 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 194 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698