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

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

Issue 7508044: Remove video_channel() from Session interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CLIENT_H_ 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual void set_input_stub(InputStub* input_stub); 83 virtual void set_input_stub(InputStub* input_stub);
84 84
85 protected: 85 protected:
86 friend class base::RefCountedThreadSafe<ConnectionToClient>; 86 friend class base::RefCountedThreadSafe<ConnectionToClient>;
87 virtual ~ConnectionToClient(); 87 virtual ~ConnectionToClient();
88 88
89 private: 89 private:
90 // Callback for protocol Session. 90 // Callback for protocol Session.
91 void OnSessionStateChange(Session::State state); 91 void OnSessionStateChange(Session::State state);
92 92
93 // Callback for VideoReader::Init().
94 void OnVideoInitialized(bool successful);
95
96 void CloseOnError();
97
93 // Stops writing in the channels. 98 // Stops writing in the channels.
94 void CloseChannels(); 99 void CloseChannels();
95 100
96 // The libjingle channel used to send and receive data from the remote client.
97 scoped_ptr<Session> session_;
98
99 scoped_ptr<VideoWriter> video_writer_;
100
101 // ClientStub for sending messages to the client.
102 scoped_ptr<ClientControlSender> client_control_sender_;
103
104 // The message loop that this object runs on. 101 // The message loop that this object runs on.
105 MessageLoop* loop_; 102 MessageLoop* loop_;
106 103
107 // Event handler for handling events sent from this object. 104 // Event handler for handling events sent from this object.
108 EventHandler* handler_; 105 EventHandler* handler_;
109 106
110 // HostStub for receiving control events from the client. 107 // Stubs that are called for incoming messages.
111 HostStub* host_stub_; 108 HostStub* host_stub_;
112
113 // InputStub for receiving input events from the client.
114 InputStub* input_stub_; 109 InputStub* input_stub_;
115 110
116 // Dispatcher for submitting messages to stubs. 111 // The libjingle channel used to send and receive data from the remote client.
112 scoped_ptr<Session> session_;
113
114 // Writers for outgoing channels.
115 scoped_ptr<VideoWriter> video_writer_;
116 scoped_ptr<ClientControlSender> client_control_sender_;
117
118 // Dispatcher for incoming messages.
117 scoped_ptr<HostMessageDispatcher> dispatcher_; 119 scoped_ptr<HostMessageDispatcher> dispatcher_;
118 120
121 // State of the channels.
122 bool control_connected_;
123 bool input_connected_;
124 bool video_connected_;
125
119 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); 126 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
120 }; 127 };
121 128
122 } // namespace protocol 129 } // namespace protocol
123 } // namespace remoting 130 } // namespace remoting
124 131
125 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 132 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698