summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authortedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-01 21:33:00 +0000
committertedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-01 21:33:00 +0000
commitbb8074e9927ffb769a3683e9aa11f899a4506fbe (patch)
tree1cea8268708d35fc7dc43a423dd60e28ed54b54d /remoting
parent12382874042ef4a748011b0fb482af5e91b83a03 (diff)
downloadchromium_src-bb8074e9927ffb769a3683e9aa11f899a4506fbe.zip
chromium_src-bb8074e9927ffb769a3683e9aa11f899a4506fbe.tar.gz
chromium_src-bb8074e9927ffb769a3683e9aa11f899a4506fbe.tar.bz2
Remove old PostDelayedTask interfaces that use int ms instead of TimeDelta.
BUG=108171 Review URL: https://chromiumcodereview.appspot.com/9703053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140102 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/base/plugin_message_loop_proxy.cc16
-rw-r--r--remoting/base/plugin_message_loop_proxy.h8
-rw-r--r--remoting/base/scoped_thread_proxy.cc10
-rw-r--r--remoting/base/scoped_thread_proxy.h2
-rw-r--r--remoting/host/it2me_host_user_interface.cc3
5 files changed, 8 insertions, 31 deletions
diff --git a/remoting/base/plugin_message_loop_proxy.cc b/remoting/base/plugin_message_loop_proxy.cc
index 9d9a599..ad595c8 100644
--- a/remoting/base/plugin_message_loop_proxy.cc
+++ b/remoting/base/plugin_message_loop_proxy.cc
@@ -27,14 +27,6 @@ void PluginMessageLoopProxy::Detach() {
bool PluginMessageLoopProxy::PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) {
- return PostDelayedTask(
- from_here, task, base::TimeDelta::FromMilliseconds(delay_ms));
-}
-
-bool PluginMessageLoopProxy::PostDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
base::TimeDelta delay) {
base::AutoLock auto_lock(lock_);
if (!delegate_)
@@ -49,14 +41,6 @@ bool PluginMessageLoopProxy::PostDelayedTask(
bool PluginMessageLoopProxy::PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) {
- // All tasks running on this message loop are non-nestable.
- return PostDelayedTask(from_here, task, delay_ms);
-}
-
-bool PluginMessageLoopProxy::PostNonNestableDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
base::TimeDelta delay) {
// All tasks running on this message loop are non-nestable.
return PostDelayedTask(from_here, task, delay);
diff --git a/remoting/base/plugin_message_loop_proxy.h b/remoting/base/plugin_message_loop_proxy.h
index 23e2c7a..1088344 100644
--- a/remoting/base/plugin_message_loop_proxy.h
+++ b/remoting/base/plugin_message_loop_proxy.h
@@ -34,18 +34,10 @@ class PluginMessageLoopProxy : public base::MessageLoopProxy {
virtual bool PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) OVERRIDE;
- virtual bool PostDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
base::TimeDelta delay) OVERRIDE;
virtual bool PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) OVERRIDE;
- virtual bool PostNonNestableDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
base::TimeDelta delay) OVERRIDE;
virtual bool RunsTasksOnCurrentThread() const OVERRIDE;
diff --git a/remoting/base/scoped_thread_proxy.cc b/remoting/base/scoped_thread_proxy.cc
index d1dcc26..7209a52 100644
--- a/remoting/base/scoped_thread_proxy.cc
+++ b/remoting/base/scoped_thread_proxy.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -24,9 +24,9 @@ class ScopedThreadProxy::Core : public base::RefCountedThreadSafe<Core> {
void PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& closure,
- int64 delay_ms) {
+ base::TimeDelta delay) {
if (!canceled_) {
- message_loop_->PostDelayedTask(from_here, Wrap(closure), delay_ms);
+ message_loop_->PostDelayedTask(from_here, Wrap(closure), delay);
}
}
@@ -75,8 +75,8 @@ void ScopedThreadProxy::PostTask(const tracked_objects::Location& from_here,
void ScopedThreadProxy::PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& closure,
- int64 delay_ms) {
- core_->PostDelayedTask(from_here, closure, delay_ms);
+ base::TimeDelta delay) {
+ core_->PostDelayedTask(from_here, closure, delay);
}
void ScopedThreadProxy::Detach() {
diff --git a/remoting/base/scoped_thread_proxy.h b/remoting/base/scoped_thread_proxy.h
index 9e43a15..8e69d8f 100644
--- a/remoting/base/scoped_thread_proxy.h
+++ b/remoting/base/scoped_thread_proxy.h
@@ -54,7 +54,7 @@ class ScopedThreadProxy {
const base::Closure& closure);
void PostDelayedTask(const tracked_objects::Location& from_here,
const base::Closure& closure,
- int64 delay_ms);
+ base::TimeDelta delay);
// Cancels all tasks posted via this proxy. Must be called on the
// thread this object belongs to.
diff --git a/remoting/host/it2me_host_user_interface.cc b/remoting/host/it2me_host_user_interface.cc
index c39f6d3..3edb144 100644
--- a/remoting/host/it2me_host_user_interface.cc
+++ b/remoting/host/it2me_host_user_interface.cc
@@ -30,7 +30,8 @@ class It2MeHostUserInterface::TimerTask {
const base::Closure& task,
int delay_ms)
: thread_proxy_(message_loop) {
- thread_proxy_.PostDelayedTask(FROM_HERE, task, delay_ms);
+ thread_proxy_.PostDelayedTask(
+ FROM_HERE, task, base::TimeDelta::FromMilliseconds(delay_ms));
}
private: