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

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

Issue 9703053: Remove old Sleep and PostDelayedTask interfaces that use int ms instead of TimeDelta. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove old PDT interface in webkit/dom_storage. Created 8 years, 9 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
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 #include "remoting/host/it2me_host_user_interface.h" 5 #include "remoting/host/it2me_host_user_interface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "remoting/host/chromoting_host.h" 8 #include "remoting/host/chromoting_host.h"
9 #include "remoting/host/chromoting_host_context.h" 9 #include "remoting/host/chromoting_host_context.h"
10 #include "remoting/host/continue_window.h" 10 #include "remoting/host/continue_window.h"
11 #include "remoting/host/disconnect_window.h" 11 #include "remoting/host/disconnect_window.h"
12 #include "remoting/host/local_input_monitor.h" 12 #include "remoting/host/local_input_monitor.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 class It2MeHostUserInterface::TimerTask { 16 class It2MeHostUserInterface::TimerTask {
17 public: 17 public:
18 TimerTask(base::MessageLoopProxy* message_loop, 18 TimerTask(base::MessageLoopProxy* message_loop,
19 const base::Closure& task, 19 const base::Closure& task,
20 int delay_ms) 20 int delay_ms)
21 : thread_proxy_(message_loop) { 21 : thread_proxy_(message_loop) {
22 thread_proxy_.PostDelayedTask(FROM_HERE, task, delay_ms); 22 thread_proxy_.PostDelayedTask(
23 FROM_HERE, task, base::TimeDelta::FromMilliseconds(delay_ms));
23 } 24 }
24 25
25 private: 26 private:
26 ScopedThreadProxy thread_proxy_; 27 ScopedThreadProxy thread_proxy_;
27 }; 28 };
28 29
29 30
30 It2MeHostUserInterface::It2MeHostUserInterface(ChromotingHost* host, 31 It2MeHostUserInterface::It2MeHostUserInterface(ChromotingHost* host,
31 ChromotingHostContext* context) 32 ChromotingHostContext* context)
32 : host_(host), 33 : host_(host),
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 194 }
194 195
195 void It2MeHostUserInterface::OnShutdownHostTimer() { 196 void It2MeHostUserInterface::OnShutdownHostTimer() {
196 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); 197 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread());
197 198
198 ShowContinueWindow(false); 199 ShowContinueWindow(false);
199 host_->Shutdown(base::Closure()); 200 host_->Shutdown(base::Closure());
200 } 201 }
201 202
202 } // namespace remoting 203 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698