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

Side by Side Diff: remoting/host/chromoting_host.h

Issue 10538091: [Chromoting] Make ChromotingHost's dependency on libjingle injected, instead of hard-coded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')
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_HOST_CHROMOTING_HOST_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_
6 #define REMOTING_HOST_CHROMOTING_HOST_H_ 6 #define REMOTING_HOST_CHROMOTING_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "net/base/backoff_entry.h" 14 #include "net/base/backoff_entry.h"
15 #include "remoting/base/encoder.h" 15 #include "remoting/base/encoder.h"
16 #include "remoting/host/capturer.h" 16 #include "remoting/host/capturer.h"
17 #include "remoting/host/client_session.h" 17 #include "remoting/host/client_session.h"
18 #include "remoting/host/desktop_environment.h" 18 #include "remoting/host/desktop_environment.h"
19 #include "remoting/host/host_key_pair.h" 19 #include "remoting/host/host_key_pair.h"
20 #include "remoting/host/host_status_observer.h" 20 #include "remoting/host/host_status_observer.h"
21 #include "remoting/host/mouse_move_observer.h" 21 #include "remoting/host/mouse_move_observer.h"
22 #include "remoting/host/network_settings.h" 22 #include "remoting/host/network_settings.h"
23 #include "remoting/host/session_manager_factory.h"
23 #include "remoting/host/ui_strings.h" 24 #include "remoting/host/ui_strings.h"
24 #include "remoting/jingle_glue/jingle_thread.h"
25 #include "remoting/jingle_glue/signal_strategy.h"
26 #include "remoting/protocol/authenticator.h" 25 #include "remoting/protocol/authenticator.h"
27 #include "remoting/protocol/session_manager.h" 26 #include "remoting/protocol/session_manager.h"
28 #include "remoting/protocol/connection_to_client.h" 27 #include "remoting/protocol/connection_to_client.h"
29 28
30 namespace remoting { 29 namespace remoting {
31 30
32 namespace protocol { 31 namespace protocol {
33 class InputStub; 32 class InputStub;
34 class SessionConfig; 33 class SessionConfig;
35 class CandidateSessionConfig; 34 class CandidateSessionConfig;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, 66 class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
68 public ClientSession::EventHandler, 67 public ClientSession::EventHandler,
69 public protocol::SessionManager::Listener, 68 public protocol::SessionManager::Listener,
70 public MouseMoveObserver { 69 public MouseMoveObserver {
71 public: 70 public:
72 // The caller must ensure that |context|, |signal_strategy| and 71 // The caller must ensure that |context|, |signal_strategy| and
73 // |environment| out-live the host. 72 // |environment| out-live the host.
74 ChromotingHost(ChromotingHostContext* context, 73 ChromotingHost(ChromotingHostContext* context,
75 SignalStrategy* signal_strategy, 74 SignalStrategy* signal_strategy,
76 DesktopEnvironment* environment, 75 DesktopEnvironment* environment,
76 scoped_ptr<SessionManagerFactory> session_manager_factory,
77 const NetworkSettings& network_settings); 77 const NetworkSettings& network_settings);
78 78
79 // Asynchronously start the host process. 79 // Asynchronously start the host process.
80 // 80 //
81 // After this is invoked, the host process will connect to the talk 81 // After this is invoked, the host process will connect to the talk
82 // network and start listening for incoming connections. 82 // network and start listening for incoming connections.
83 // 83 //
84 // This method can only be called once during the lifetime of this object. 84 // This method can only be called once during the lifetime of this object.
85 void Start(); 85 void Start();
86 86
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Called from Shutdown() or OnScreenRecorderStopped() to finish shutdown. 178 // Called from Shutdown() or OnScreenRecorderStopped() to finish shutdown.
179 void ShutdownFinish(); 179 void ShutdownFinish();
180 180
181 // Unless specified otherwise all members of this class must be 181 // Unless specified otherwise all members of this class must be
182 // used on the network thread only. 182 // used on the network thread only.
183 183
184 // Parameters specified when the host was created. 184 // Parameters specified when the host was created.
185 ChromotingHostContext* context_; 185 ChromotingHostContext* context_;
186 DesktopEnvironment* desktop_environment_; 186 DesktopEnvironment* desktop_environment_;
187 scoped_ptr<SessionManagerFactory> session_manager_factory_;
187 NetworkSettings network_settings_; 188 NetworkSettings network_settings_;
188 189
189 // Connection objects. 190 // Connection objects.
190 SignalStrategy* signal_strategy_; 191 SignalStrategy* signal_strategy_;
191 scoped_ptr<protocol::SessionManager> session_manager_; 192 scoped_ptr<protocol::SessionManager> session_manager_;
192 193
193 // Must be used on the network thread only. 194 // Must be used on the network thread only.
194 ObserverList<HostStatusObserver> status_observers_; 195 ObserverList<HostStatusObserver> status_observers_;
195 196
196 // The connections to remote clients. 197 // The connections to remote clients.
(...skipping 29 matching lines...) Expand all
226 // TODO(sergeyu): The following members do not belong to 227 // TODO(sergeyu): The following members do not belong to
227 // ChromotingHost and should be moved elsewhere. 228 // ChromotingHost and should be moved elsewhere.
228 UiStrings ui_strings_; 229 UiStrings ui_strings_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 231 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
231 }; 232 };
232 233
233 } // namespace remoting 234 } // namespace remoting
234 235
235 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 236 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698