OLD | NEW |
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/time.h" |
18 | 18 |
19 namespace remoting { | 19 namespace remoting { |
20 | 20 |
21 // SingleThreadTaskRunner for plugin main threads. | 21 // SingleThreadTaskRunner for plugin main threads. |
22 class PluginThreadTaskRunner : public base::SingleThreadTaskRunner { | 22 class PluginThreadTaskRunner : public base::SingleThreadTaskRunner { |
23 public: | 23 public: |
24 class Delegate { | 24 class Delegate { |
25 public: | 25 public: |
26 virtual ~Delegate(); | 26 virtual ~Delegate(); |
27 | 27 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 // True if the shutdown task loop was been stopped. | 120 // True if the shutdown task loop was been stopped. |
121 bool stopped_; | 121 bool stopped_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(PluginThreadTaskRunner); | 123 DISALLOW_COPY_AND_ASSIGN(PluginThreadTaskRunner); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace remoting | 126 } // namespace remoting |
127 | 127 |
128 #endif // REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_ | 128 #endif // REMOTING_BASE_PLUGIN_THREAD_TASK_RUNNER_H_ |
OLD | NEW |