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

Side by Side Diff: remoting/client/chromoting_client.h

Issue 1521883006: Add TransportContext class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | remoting/client/chromoting_client.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 // ChromotingClient is the controller for the Client implementation. 5 // ChromotingClient is the controller for the Client implementation.
6 6
7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_
8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "remoting/protocol/client_stub.h" 14 #include "remoting/protocol/client_stub.h"
15 #include "remoting/protocol/clipboard_stub.h" 15 #include "remoting/protocol/clipboard_stub.h"
16 #include "remoting/protocol/connection_to_host.h" 16 #include "remoting/protocol/connection_to_host.h"
17 #include "remoting/protocol/connection_to_host_impl.h" 17 #include "remoting/protocol/connection_to_host_impl.h"
18 #include "remoting/protocol/input_stub.h" 18 #include "remoting/protocol/input_stub.h"
19 #include "remoting/protocol/performance_tracker.h" 19 #include "remoting/protocol/performance_tracker.h"
20 #include "remoting/protocol/video_stub.h" 20 #include "remoting/protocol/video_stub.h"
21 21
22 namespace base { 22 namespace base {
23 class SingleThreadTaskRunner; 23 class SingleThreadTaskRunner;
24 } // namespace base 24 } // namespace base
25 25
26 namespace remoting { 26 namespace remoting {
27 27
28 namespace protocol { 28 namespace protocol {
29 class CandidateSessionConfig; 29 class CandidateSessionConfig;
30 class TransportFactory; 30 class TransportContext;
31 } // namespace protocol 31 } // namespace protocol
32 32
33 class AudioDecodeScheduler; 33 class AudioDecodeScheduler;
34 class AudioPlayer; 34 class AudioPlayer;
35 class ClientContext; 35 class ClientContext;
36 class ClientUserInterface; 36 class ClientUserInterface;
37 class FrameConsumerProxy; 37 class FrameConsumerProxy;
38 class FrameProducer; 38 class FrameProducer;
39 class VideoRenderer; 39 class VideoRenderer;
40 class SignalStrategy; 40 class SignalStrategy;
(...skipping 14 matching lines...) Expand all
55 void set_protocol_config(scoped_ptr<protocol::CandidateSessionConfig> config); 55 void set_protocol_config(scoped_ptr<protocol::CandidateSessionConfig> config);
56 56
57 // Used to set fake/mock objects for tests which use the ChromotingClient. 57 // Used to set fake/mock objects for tests which use the ChromotingClient.
58 void SetConnectionToHostForTests( 58 void SetConnectionToHostForTests(
59 scoped_ptr<protocol::ConnectionToHost> connection_to_host); 59 scoped_ptr<protocol::ConnectionToHost> connection_to_host);
60 60
61 // Start the client. Must be called on the main thread. |signal_strategy| 61 // Start the client. Must be called on the main thread. |signal_strategy|
62 // must outlive the client. 62 // must outlive the client.
63 void Start(SignalStrategy* signal_strategy, 63 void Start(SignalStrategy* signal_strategy,
64 scoped_ptr<protocol::Authenticator> authenticator, 64 scoped_ptr<protocol::Authenticator> authenticator,
65 scoped_ptr<protocol::TransportFactory> transport_factory, 65 scoped_refptr<protocol::TransportContext> transport_context,
66 const std::string& host_jid, 66 const std::string& host_jid,
67 const std::string& capabilities); 67 const std::string& capabilities);
68 68
69 protocol::ConnectionToHost::State connection_state() const { 69 protocol::ConnectionToHost::State connection_state() const {
70 return connection_->state(); 70 return connection_->state();
71 } 71 }
72 72
73 protocol::ClipboardStub* clipboard_forwarder() { 73 protocol::ClipboardStub* clipboard_forwarder() {
74 return connection_->clipboard_forwarder(); 74 return connection_->clipboard_forwarder();
75 } 75 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Record the statistics of the connection. 122 // Record the statistics of the connection.
123 protocol::PerformanceTracker perf_tracker_; 123 protocol::PerformanceTracker perf_tracker_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 125 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
126 }; 126 };
127 127
128 } // namespace remoting 128 } // namespace remoting
129 129
130 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 130 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698