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

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. 101 // The libjingle channel used to send and receive data from the remote client.
97 scoped_ptr<Session> session_; 102 scoped_ptr<Session> session_;
98 103
99 scoped_ptr<VideoWriter> video_writer_; 104 scoped_ptr<VideoWriter> video_writer_;
100 105
101 // ClientStub for sending messages to the client. 106 // ClientStub for sending messages to the client.
102 scoped_ptr<ClientControlSender> client_control_sender_; 107 scoped_ptr<ClientControlSender> client_control_sender_;
(...skipping 13 matching lines...) Expand all
116 // Dispatcher for submitting messages to stubs. 121 // Dispatcher for submitting messages to stubs.
117 scoped_ptr<HostMessageDispatcher> dispatcher_; 122 scoped_ptr<HostMessageDispatcher> dispatcher_;
118 123
119 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); 124 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
120 }; 125 };
121 126
122 } // namespace protocol 127 } // namespace protocol
123 } // namespace remoting 128 } // namespace remoting
124 129
125 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 130 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698