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

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

Issue 7635012: Host process i18n and Linux implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROMOTING_HOST_H_ 5 #ifndef REMOTING_CHROMOTING_HOST_H_
6 #define REMOTING_CHROMOTING_HOST_H_ 6 #define REMOTING_CHROMOTING_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "remoting/base/encoder.h" 12 #include "remoting/base/encoder.h"
13 #include "remoting/host/access_verifier.h" 13 #include "remoting/host/access_verifier.h"
14 #include "remoting/host/capturer.h" 14 #include "remoting/host/capturer.h"
15 #include "remoting/host/client_session.h" 15 #include "remoting/host/client_session.h"
16 #include "remoting/host/desktop_environment.h" 16 #include "remoting/host/desktop_environment.h"
17 #include "remoting/host/host_status_observer.h" 17 #include "remoting/host/host_status_observer.h"
18 #include "remoting/host/ui_strings.h"
18 #include "remoting/jingle_glue/jingle_thread.h" 19 #include "remoting/jingle_glue/jingle_thread.h"
19 #include "remoting/jingle_glue/signal_strategy.h" 20 #include "remoting/jingle_glue/signal_strategy.h"
20 #include "remoting/protocol/session_manager.h" 21 #include "remoting/protocol/session_manager.h"
21 #include "remoting/protocol/connection_to_client.h" 22 #include "remoting/protocol/connection_to_client.h"
22 23
23 class Task; 24 class Task;
24 25
25 namespace remoting { 26 namespace remoting {
26 27
27 namespace protocol { 28 namespace protocol {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 138 }
138 139
139 // Notify all active client sessions that local input has been detected, and 140 // Notify all active client sessions that local input has been detected, and
140 // that remote input should be ignored for a short time. 141 // that remote input should be ignored for a short time.
141 void LocalMouseMoved(const gfx::Point& new_pos); 142 void LocalMouseMoved(const gfx::Point& new_pos);
142 143
143 // Pause or unpause the session. While the session is paused, remote input 144 // Pause or unpause the session. While the session is paused, remote input
144 // is ignored. 145 // is ignored.
145 void PauseSession(bool pause); 146 void PauseSession(bool pause);
146 147
148 UiStrings* ui_strings() { return &ui_strings_; }
149
147 private: 150 private:
148 friend class base::RefCountedThreadSafe<ChromotingHost>; 151 friend class base::RefCountedThreadSafe<ChromotingHost>;
149 friend class ChromotingHostTest; 152 friend class ChromotingHostTest;
150 153
151 typedef std::vector<HostStatusObserver*> StatusObserverList; 154 typedef std::vector<HostStatusObserver*> StatusObserverList;
152 typedef std::vector<scoped_refptr<ClientSession> > ClientList; 155 typedef std::vector<scoped_refptr<ClientSession> > ClientList;
153 156
154 enum State { 157 enum State {
155 kInitial, 158 kInitial,
156 kStarted, 159 kStarted,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Whether or not the host is running in "IT2Me" mode, in which connections 235 // Whether or not the host is running in "IT2Me" mode, in which connections
233 // are pre-authenticated, and hence the local login challenge can be bypassed. 236 // are pre-authenticated, and hence the local login challenge can be bypassed.
234 bool is_it2me_; 237 bool is_it2me_;
235 238
236 std::string access_code_; 239 std::string access_code_;
237 240
238 // Stores list of tasks that should be executed when we finish 241 // Stores list of tasks that should be executed when we finish
239 // shutdown. Used only while |state_| is set to kStopping. 242 // shutdown. Used only while |state_| is set to kStopping.
240 std::vector<Task*> shutdown_tasks_; 243 std::vector<Task*> shutdown_tasks_;
241 244
245 UiStrings ui_strings_;
246
242 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 247 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
243 }; 248 };
244 249
245 } // namespace remoting 250 } // namespace remoting
246 251
247 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 252 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/plugin/host_plugin_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698