summaryrefslogtreecommitdiffstats
path: root/base/thread_task_runner_handle.h
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 20:44:38 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 20:44:38 +0000
commitac115ce69f13d5a25cac752b9e761198be478d51 (patch)
tree844bcbf1b993922333dc336e0c49f2f4683a8106 /base/thread_task_runner_handle.h
parent0306365d33a7cb7eee1f0c3315a98126af2cce35 (diff)
downloadchromium_src-ac115ce69f13d5a25cac752b9e761198be478d51.zip
chromium_src-ac115ce69f13d5a25cac752b9e761198be478d51.tar.gz
chromium_src-ac115ce69f13d5a25cac752b9e761198be478d51.tar.bz2
The continue window is owned by the desktop environment now.
This CL completely removes HostUserInterface and It2MeHostUserInterface classes, making the desktop enviroment (It2MeDesktopEnvironment) responsible for creation of the UI. Platform-specific implementations of ContinueWindow have been rewritten on top of HostWindow class. Collateral changes: - HostScriptObject creates a instance of base::ThreadTaskRunnerHandle so that timers could run on the plugin thread. - No more "uninteresting mock" messages caused by the continue and disconnect windows when running remoting_unittests. BUG=104544 Review URL: https://chromiumcodereview.appspot.com/13461029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/thread_task_runner_handle.h')
-rw-r--r--base/thread_task_runner_handle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/thread_task_runner_handle.h b/base/thread_task_runner_handle.h
index 9a9dcfd..238435f 100644
--- a/base/thread_task_runner_handle.h
+++ b/base/thread_task_runner_handle.h
@@ -21,6 +21,10 @@ class BASE_EXPORT ThreadTaskRunnerHandle {
// Gets the SingleThreadTaskRunner for the current thread.
static scoped_refptr<SingleThreadTaskRunner> Get();
+ // Returns true if the SingleThreadTaskRunner is already created for
+ // the current thread.
+ static bool IsSet();
+
// Binds |task_runner| to the current thread. |task_runner| must belong
// to the current thread for this to succeed.
explicit ThreadTaskRunnerHandle(