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

Side by Side Diff: remoting/host/desktop_environment.cc

Issue 7635012: Host process i18n and Linux implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang error. 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 #include "remoting/host/desktop_environment.h" 5 #include "remoting/host/desktop_environment.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "remoting/host/capturer.h" 9 #include "remoting/host/capturer.h"
10 #include "remoting/host/chromoting_host.h" 10 #include "remoting/host/chromoting_host.h"
11 #include "remoting/host/chromoting_host_context.h" 11 #include "remoting/host/chromoting_host_context.h"
12 #include "remoting/host/continue_window.h" 12 #include "remoting/host/continue_window.h"
13 #include "remoting/host/curtain.h" 13 #include "remoting/host/curtain.h"
14 #include "remoting/host/disconnect_window.h" 14 #include "remoting/host/disconnect_window.h"
15 #include "remoting/host/event_executor.h" 15 #include "remoting/host/event_executor.h"
16 #include "remoting/host/local_input_monitor.h" 16 #include "remoting/host/local_input_monitor.h"
17 17
18 static const int kContinueWindowTimeoutMs = 10 * 60 * 1000; 18 static const int kContinueWindowTimeoutMs = 10 * 1 * 1000;
Lambros 2011/08/13 00:32:13 Don't forget to undo this :)
Jamie 2011/08/13 00:56:19 Oh, if you insist...
19 19
20 namespace remoting { 20 namespace remoting {
21 21
22 // UIThreadProxy proxies DesktopEnvironment method calls to the UI 22 // UIThreadProxy proxies DesktopEnvironment method calls to the UI
23 // thread. This is neccessary so that DesktopEnvironment can be 23 // thread. This is neccessary so that DesktopEnvironment can be
24 // deleted synchronously even while there are pending tasks on the 24 // deleted synchronously even while there are pending tasks on the
25 // message queue. 25 // message queue.
26 class UIThreadProxy : public base::RefCountedThreadSafe<UIThreadProxy> { 26 class UIThreadProxy : public base::RefCountedThreadSafe<UIThreadProxy> {
27 public: 27 public:
28 UIThreadProxy(ChromotingHostContext* context) 28 UIThreadProxy(ChromotingHostContext* context)
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // then started again. In that case we just ignore this call. 207 // then started again. In that case we just ignore this call.
208 if (continue_timer_target_time_ > base::Time::Now()) 208 if (continue_timer_target_time_ > base::Time::Now())
209 return; 209 return;
210 210
211 host_->PauseSession(true); 211 host_->PauseSession(true);
212 ShowContinueWindow(true); 212 ShowContinueWindow(true);
213 } 213 }
214 214
215 215
216 } // namespace remoting 216 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698