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

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

Issue 10532211: Added piping for sending audio packets from host to client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unittests Created 8 years, 6 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/connection_to_client.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 13 matching lines...) Expand all
24 class Instance; 24 class Instance;
25 } // namespace pp 25 } // namespace pp
26 26
27 namespace remoting { 27 namespace remoting {
28 28
29 class XmppProxy; 29 class XmppProxy;
30 class VideoPacket; 30 class VideoPacket;
31 31
32 namespace protocol { 32 namespace protocol {
33 33
34 class AudioReader;
35 class AudioStub;
34 class Authenticator; 36 class Authenticator;
35 class ClientControlDispatcher; 37 class ClientControlDispatcher;
36 class ClientEventDispatcher; 38 class ClientEventDispatcher;
37 class ClientStub; 39 class ClientStub;
38 class ClipboardStub; 40 class ClipboardStub;
39 class HostStub; 41 class HostStub;
40 class InputStub; 42 class InputStub;
41 class SessionConfig; 43 class SessionConfig;
42 class TransportFactory; 44 class TransportFactory;
43 class VideoReader; 45 class VideoReader;
(...skipping 23 matching lines...) Expand all
67 69
68 virtual void Connect(scoped_refptr<XmppProxy> xmpp_proxy, 70 virtual void Connect(scoped_refptr<XmppProxy> xmpp_proxy,
69 const std::string& local_jid, 71 const std::string& local_jid,
70 const std::string& host_jid, 72 const std::string& host_jid,
71 const std::string& host_public_key, 73 const std::string& host_public_key,
72 scoped_ptr<TransportFactory> transport_factory, 74 scoped_ptr<TransportFactory> transport_factory,
73 scoped_ptr<Authenticator> authenticator, 75 scoped_ptr<Authenticator> authenticator,
74 HostEventCallback* event_callback, 76 HostEventCallback* event_callback,
75 ClientStub* client_stub, 77 ClientStub* client_stub,
76 ClipboardStub* clipboard_stub, 78 ClipboardStub* clipboard_stub,
77 VideoStub* video_stub); 79 VideoStub* video_stub,
80 AudioStub* audio_stub);
78 81
79 virtual void Disconnect(const base::Closure& shutdown_task); 82 virtual void Disconnect(const base::Closure& shutdown_task);
80 83
81 virtual const SessionConfig& config(); 84 virtual const SessionConfig& config();
82 85
83 // Stubs for sending data to the host. 86 // Stubs for sending data to the host.
84 virtual ClipboardStub* clipboard_stub(); 87 virtual ClipboardStub* clipboard_stub();
85 virtual HostStub* host_stub(); 88 virtual HostStub* host_stub();
86 virtual InputStub* input_stub(); 89 virtual InputStub* input_stub();
87 90
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 std::string host_jid_; 125 std::string host_jid_;
123 std::string host_public_key_; 126 std::string host_public_key_;
124 scoped_ptr<Authenticator> authenticator_; 127 scoped_ptr<Authenticator> authenticator_;
125 128
126 HostEventCallback* event_callback_; 129 HostEventCallback* event_callback_;
127 130
128 // Stub for incoming messages. 131 // Stub for incoming messages.
129 ClientStub* client_stub_; 132 ClientStub* client_stub_;
130 ClipboardStub* clipboard_stub_; 133 ClipboardStub* clipboard_stub_;
131 VideoStub* video_stub_; 134 VideoStub* video_stub_;
135 AudioStub* audio_stub_;
132 136
133 scoped_ptr<SignalStrategy> signal_strategy_; 137 scoped_ptr<SignalStrategy> signal_strategy_;
134 scoped_ptr<SessionManager> session_manager_; 138 scoped_ptr<SessionManager> session_manager_;
135 scoped_ptr<Session> session_; 139 scoped_ptr<Session> session_;
136 140
137 scoped_ptr<VideoReader> video_reader_; 141 scoped_ptr<VideoReader> video_reader_;
142 scoped_ptr<AudioReader> audio_reader_;
138 scoped_ptr<ClientControlDispatcher> control_dispatcher_; 143 scoped_ptr<ClientControlDispatcher> control_dispatcher_;
139 scoped_ptr<ClientEventDispatcher> event_dispatcher_; 144 scoped_ptr<ClientEventDispatcher> event_dispatcher_;
140 ClipboardFilter clipboard_forwarder_; 145 ClipboardFilter clipboard_forwarder_;
141 InputFilter event_forwarder_; 146 InputFilter event_forwarder_;
142 147
143 // Internal state of the connection. 148 // Internal state of the connection.
144 State state_; 149 State state_;
145 ErrorCode error_; 150 ErrorCode error_;
146 151
147 private: 152 private:
148 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); 153 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost);
149 }; 154 };
150 155
151 } // namespace protocol 156 } // namespace protocol
152 } // namespace remoting 157 } // namespace remoting
153 158
154 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 159 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW
« no previous file with comments | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698