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 BASE_THREADING_THREAD_RESTRICTIONS_H_ | 5 #ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_ |
6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_ | 6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
11 // See comment at top of thread_checker.h | 11 // See comment at top of thread_checker.h |
12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) | 12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) |
13 #define ENABLE_THREAD_RESTRICTIONS 1 | 13 #define ENABLE_THREAD_RESTRICTIONS 1 |
14 #else | 14 #else |
15 #define ENABLE_THREAD_RESTRICTIONS 0 | 15 #define ENABLE_THREAD_RESTRICTIONS 0 |
16 #endif | 16 #endif |
17 | 17 |
18 class BrowserProcessImpl; | 18 class BrowserProcessImpl; |
19 class HistogramSynchronizer; | 19 class HistogramSynchronizer; |
20 class NativeBackendKWallet; | 20 class NativeBackendKWallet; |
21 class ScopedAllowWaitForLegacyWebViewApi; | 21 class ScopedAllowWaitForLegacyWebViewApi; |
22 | 22 |
23 namespace cc { | 23 namespace cc { |
24 class CompletionEvent; | 24 class CompletionEvent; |
25 class SingleThreadTaskGraphRunner; | |
25 class TaskGraphRunner; | 26 class TaskGraphRunner; |
danakj
2015/11/30 23:54:27
remove this?
ericrk
2015/11/30 23:58:47
Done.
| |
26 } | 27 } |
27 namespace chromeos { | 28 namespace chromeos { |
28 class BlockingMethodCaller; | 29 class BlockingMethodCaller; |
29 namespace system { | 30 namespace system { |
30 class StatisticsProviderImpl; | 31 class StatisticsProviderImpl; |
31 } | 32 } |
32 } | 33 } |
33 namespace chrome_browser_net { | 34 namespace chrome_browser_net { |
34 class Predictor; | 35 class Predictor; |
35 } | 36 } |
36 namespace content { | 37 namespace content { |
37 class BrowserGpuChannelHostFactory; | 38 class BrowserGpuChannelHostFactory; |
38 class BrowserGpuMemoryBufferManager; | 39 class BrowserGpuMemoryBufferManager; |
39 class BrowserShutdownProfileDumper; | 40 class BrowserShutdownProfileDumper; |
40 class BrowserTestBase; | 41 class BrowserTestBase; |
41 class GpuChannelHost; | 42 class GpuChannelHost; |
42 class NestedMessagePumpAndroid; | 43 class NestedMessagePumpAndroid; |
43 class ScopedAllowWaitForAndroidLayoutTests; | 44 class ScopedAllowWaitForAndroidLayoutTests; |
44 class ScopedAllowWaitForDebugURL; | 45 class ScopedAllowWaitForDebugURL; |
45 class SoftwareOutputDeviceMus; | 46 class SoftwareOutputDeviceMus; |
46 class TextInputClientMac; | 47 class TextInputClientMac; |
48 class RasterWorkerPool; | |
47 } // namespace content | 49 } // namespace content |
48 namespace dbus { | 50 namespace dbus { |
49 class Bus; | 51 class Bus; |
50 } | 52 } |
51 namespace disk_cache { | 53 namespace disk_cache { |
52 class BackendImpl; | 54 class BackendImpl; |
53 class InFlightIO; | 55 class InFlightIO; |
54 } | 56 } |
55 namespace gles2 { | 57 namespace gles2 { |
56 class CommandBufferClientImpl; | 58 class CommandBufferClientImpl; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 181 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
180 // BEGIN ALLOWED USAGE. | 182 // BEGIN ALLOWED USAGE. |
181 friend class content::BrowserShutdownProfileDumper; | 183 friend class content::BrowserShutdownProfileDumper; |
182 friend class content::BrowserTestBase; | 184 friend class content::BrowserTestBase; |
183 friend class content::NestedMessagePumpAndroid; | 185 friend class content::NestedMessagePumpAndroid; |
184 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 186 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
185 friend class content::ScopedAllowWaitForDebugURL; | 187 friend class content::ScopedAllowWaitForDebugURL; |
186 friend class ::HistogramSynchronizer; | 188 friend class ::HistogramSynchronizer; |
187 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 189 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
188 friend class cc::CompletionEvent; | 190 friend class cc::CompletionEvent; |
189 friend class cc::TaskGraphRunner; | 191 friend class cc::SingleThreadTaskGraphRunner; |
192 friend class content::RasterWorkerPool; | |
190 friend class remoting::AutoThread; | 193 friend class remoting::AutoThread; |
191 friend class ui::WindowResizeHelperMac; | 194 friend class ui::WindowResizeHelperMac; |
192 friend class MessagePumpDefault; | 195 friend class MessagePumpDefault; |
193 friend class SequencedWorkerPool; | 196 friend class SequencedWorkerPool; |
194 friend class SimpleThread; | 197 friend class SimpleThread; |
195 friend class Thread; | 198 friend class Thread; |
196 friend class ThreadTestHelper; | 199 friend class ThreadTestHelper; |
197 friend class PlatformThread; | 200 friend class PlatformThread; |
198 friend class android::JavaHandlerThread; | 201 friend class android::JavaHandlerThread; |
199 friend class gles2::CommandBufferClientImpl; | 202 friend class gles2::CommandBufferClientImpl; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 | 246 |
244 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 247 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
245 }; | 248 }; |
246 | 249 |
247 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 250 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
248 }; | 251 }; |
249 | 252 |
250 } // namespace base | 253 } // namespace base |
251 | 254 |
252 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 255 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |