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

Side by Side Diff: remoting/base/plugin_thread_task_runner.h

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « remoting/base/auto_thread_task_runner.h ('k') | remoting/host/register_support_host_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_ 5 #ifndef REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_
6 #define REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_ 6 #define REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/pending_task.h" 12 #include "base/pending_task.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "base/synchronization/waitable_event.h" 15 #include "base/synchronization/waitable_event.h"
16 #include "base/threading/platform_thread.h" 16 #include "base/threading/platform_thread.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 18
19 class MessageLoop;
20
21 namespace remoting { 19 namespace remoting {
22 20
23 // SingleThreadTaskRunner for plugin main threads. 21 // SingleThreadTaskRunner for plugin main threads.
24 class PluginThreadTaskRunner : public base::SingleThreadTaskRunner { 22 class PluginThreadTaskRunner : public base::SingleThreadTaskRunner {
25 public: 23 public:
26 class Delegate { 24 class Delegate {
27 public: 25 public:
28 virtual ~Delegate(); 26 virtual ~Delegate();
29 27
30 virtual bool RunOnPluginThread( 28 virtual bool RunOnPluginThread(
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 119
122 // True if the shutdown task loop was been stopped. 120 // True if the shutdown task loop was been stopped.
123 bool stopped_; 121 bool stopped_;
124 122
125 DISALLOW_COPY_AND_ASSIGN(PluginThreadTaskRunner); 123 DISALLOW_COPY_AND_ASSIGN(PluginThreadTaskRunner);
126 }; 124 };
127 125
128 } // namespace remoting 126 } // namespace remoting
129 127
130 #endif // REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_ 128 #endif // REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « remoting/base/auto_thread_task_runner.h ('k') | remoting/host/register_support_host_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698