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

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

Issue 9921034: [Chromoting] Add plumbing to carry clipboard events from the host to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/client_control_dispatcher.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 30
31 class XmppProxy; 31 class XmppProxy;
32 class VideoPacket; 32 class VideoPacket;
33 33
34 namespace protocol { 34 namespace protocol {
35 35
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 HostStub; 41 class HostStub;
41 class InputStub; 42 class InputStub;
42 class SessionConfig; 43 class SessionConfig;
43 class VideoReader; 44 class VideoReader;
44 class VideoStub; 45 class VideoStub;
45 46
46 class ConnectionToHost : public SignalStrategy::Listener, 47 class ConnectionToHost : public SignalStrategy::Listener,
47 public SessionManager::Listener { 48 public SessionManager::Listener {
48 public: 49 public:
49 enum State { 50 enum State {
(...skipping 16 matching lines...) Expand all
66 bool allow_nat_traversal); 67 bool allow_nat_traversal);
67 virtual ~ConnectionToHost(); 68 virtual ~ConnectionToHost();
68 69
69 virtual void Connect(scoped_refptr<XmppProxy> xmpp_proxy, 70 virtual void Connect(scoped_refptr<XmppProxy> xmpp_proxy,
70 const std::string& local_jid, 71 const std::string& local_jid,
71 const std::string& host_jid, 72 const std::string& host_jid,
72 const std::string& host_public_key, 73 const std::string& host_public_key,
73 scoped_ptr<Authenticator> authenticator, 74 scoped_ptr<Authenticator> authenticator,
74 HostEventCallback* event_callback, 75 HostEventCallback* event_callback,
75 ClientStub* client_stub, 76 ClientStub* client_stub,
77 ClipboardStub* clipboard_stub,
76 VideoStub* video_stub); 78 VideoStub* video_stub);
77 79
78 virtual void Disconnect(const base::Closure& shutdown_task); 80 virtual void Disconnect(const base::Closure& shutdown_task);
79 81
80 virtual const SessionConfig& config(); 82 virtual const SessionConfig& config();
81 83
82 virtual InputStub* input_stub(); 84 virtual InputStub* input_stub();
83 85
84 // SignalStrategy::StatusObserver interface. 86 // SignalStrategy::StatusObserver interface.
85 virtual void OnSignalStrategyStateChange( 87 virtual void OnSignalStrategyStateChange(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool allow_nat_traversal_; 123 bool allow_nat_traversal_;
122 124
123 std::string host_jid_; 125 std::string host_jid_;
124 std::string host_public_key_; 126 std::string host_public_key_;
125 scoped_ptr<Authenticator> authenticator_; 127 scoped_ptr<Authenticator> authenticator_;
126 128
127 HostEventCallback* event_callback_; 129 HostEventCallback* event_callback_;
128 130
129 // Stub for incoming messages. 131 // Stub for incoming messages.
130 ClientStub* client_stub_; 132 ClientStub* client_stub_;
133 ClipboardStub* clipboard_stub_;
131 VideoStub* video_stub_; 134 VideoStub* video_stub_;
132 135
133 scoped_ptr<SignalStrategy> signal_strategy_; 136 scoped_ptr<SignalStrategy> signal_strategy_;
134 scoped_ptr<SessionManager> session_manager_; 137 scoped_ptr<SessionManager> session_manager_;
135 scoped_ptr<Session> session_; 138 scoped_ptr<Session> session_;
136 139
137 scoped_ptr<VideoReader> video_reader_; 140 scoped_ptr<VideoReader> video_reader_;
138 scoped_ptr<ClientControlDispatcher> control_dispatcher_; 141 scoped_ptr<ClientControlDispatcher> control_dispatcher_;
139 scoped_ptr<ClientEventDispatcher> event_dispatcher_; 142 scoped_ptr<ClientEventDispatcher> event_dispatcher_;
140 InputFilter event_forwarder_; 143 InputFilter event_forwarder_;
141 144
142 // Internal state of the connection. 145 // Internal state of the connection.
143 State state_; 146 State state_;
144 ErrorCode error_; 147 ErrorCode error_;
145 148
146 private: 149 private:
147 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); 150 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost);
148 }; 151 };
149 152
150 } // namespace protocol 153 } // namespace protocol
151 } // namespace remoting 154 } // namespace remoting
152 155
153 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 156 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW
« no previous file with comments | « remoting/protocol/client_control_dispatcher.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698