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

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

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra LOGs Created 8 years, 7 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) 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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 21 matching lines...) Expand all
32 class XmppProxy; 32 class XmppProxy;
33 class VideoPacket; 33 class VideoPacket;
34 34
35 namespace protocol { 35 namespace protocol {
36 36
37 class Authenticator; 37 class Authenticator;
38 class ClientControlDispatcher; 38 class ClientControlDispatcher;
39 class ClientEventDispatcher; 39 class ClientEventDispatcher;
40 class ClientStub; 40 class ClientStub;
41 class ClipboardStub; 41 class ClipboardStub;
42 class CursorShapeStub;
42 class HostStub; 43 class HostStub;
43 class InputStub; 44 class InputStub;
44 class SessionConfig; 45 class SessionConfig;
45 class TransportFactory; 46 class TransportFactory;
46 class VideoReader; 47 class VideoReader;
47 class VideoStub; 48 class VideoStub;
48 49
49 class ConnectionToHost : public SignalStrategy::Listener, 50 class ConnectionToHost : public SignalStrategy::Listener,
50 public SessionManager::Listener { 51 public SessionManager::Listener {
51 public: 52 public:
(...skipping 18 matching lines...) Expand all
70 71
71 virtual void Connect(scoped_refptr<XmppProxy> xmpp_proxy, 72 virtual void Connect(scoped_refptr<XmppProxy> xmpp_proxy,
72 const std::string& local_jid, 73 const std::string& local_jid,
73 const std::string& host_jid, 74 const std::string& host_jid,
74 const std::string& host_public_key, 75 const std::string& host_public_key,
75 scoped_ptr<TransportFactory> transport_factory, 76 scoped_ptr<TransportFactory> transport_factory,
76 scoped_ptr<Authenticator> authenticator, 77 scoped_ptr<Authenticator> authenticator,
77 HostEventCallback* event_callback, 78 HostEventCallback* event_callback,
78 ClientStub* client_stub, 79 ClientStub* client_stub,
79 ClipboardStub* clipboard_stub, 80 ClipboardStub* clipboard_stub,
81 CursorShapeStub* cursor_shape_stub,
80 VideoStub* video_stub); 82 VideoStub* video_stub);
81 83
82 virtual void Disconnect(const base::Closure& shutdown_task); 84 virtual void Disconnect(const base::Closure& shutdown_task);
83 85
84 virtual const SessionConfig& config(); 86 virtual const SessionConfig& config();
85 87
88 // Stubs for sending data to host.
Wez 2012/05/23 00:01:57 nit: "... to the host."
garykac 2012/05/26 01:58:01 Done.
86 virtual ClipboardStub* clipboard_stub(); 89 virtual ClipboardStub* clipboard_stub();
87 virtual HostStub* host_stub(); 90 virtual HostStub* host_stub();
88 virtual InputStub* input_stub(); 91 virtual InputStub* input_stub();
89 92
90 // SignalStrategy::StatusObserver interface. 93 // SignalStrategy::StatusObserver interface.
91 virtual void OnSignalStrategyStateChange( 94 virtual void OnSignalStrategyStateChange(
92 SignalStrategy::State state) OVERRIDE; 95 SignalStrategy::State state) OVERRIDE;
93 96
94 // SessionManager::Listener interface. 97 // SessionManager::Listener interface.
95 virtual void OnSessionManagerReady() OVERRIDE; 98 virtual void OnSessionManagerReady() OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 130
128 std::string host_jid_; 131 std::string host_jid_;
129 std::string host_public_key_; 132 std::string host_public_key_;
130 scoped_ptr<Authenticator> authenticator_; 133 scoped_ptr<Authenticator> authenticator_;
131 134
132 HostEventCallback* event_callback_; 135 HostEventCallback* event_callback_;
133 136
134 // Stub for incoming messages. 137 // Stub for incoming messages.
135 ClientStub* client_stub_; 138 ClientStub* client_stub_;
136 ClipboardStub* clipboard_stub_; 139 ClipboardStub* clipboard_stub_;
140 CursorShapeStub* cursor_shape_stub_;
137 VideoStub* video_stub_; 141 VideoStub* video_stub_;
138 142
139 scoped_ptr<SignalStrategy> signal_strategy_; 143 scoped_ptr<SignalStrategy> signal_strategy_;
140 scoped_ptr<SessionManager> session_manager_; 144 scoped_ptr<SessionManager> session_manager_;
141 scoped_ptr<Session> session_; 145 scoped_ptr<Session> session_;
142 146
143 scoped_ptr<VideoReader> video_reader_; 147 scoped_ptr<VideoReader> video_reader_;
144 scoped_ptr<ClientControlDispatcher> control_dispatcher_; 148 scoped_ptr<ClientControlDispatcher> control_dispatcher_;
145 scoped_ptr<ClientEventDispatcher> event_dispatcher_; 149 scoped_ptr<ClientEventDispatcher> event_dispatcher_;
146 ClipboardFilter clipboard_forwarder_; 150 ClipboardFilter clipboard_forwarder_;
147 InputFilter event_forwarder_; 151 InputFilter event_forwarder_;
148 152
149 // Internal state of the connection. 153 // Internal state of the connection.
150 State state_; 154 State state_;
151 ErrorCode error_; 155 ErrorCode error_;
152 156
153 private: 157 private:
154 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); 158 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost);
155 }; 159 };
156 160
157 } // namespace protocol 161 } // namespace protocol
158 } // namespace remoting 162 } // namespace remoting
159 163
160 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 164 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698