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 TaskGraphRunner; | 25 class SingleThreadTaskGraphRunner; |
26 } | 26 } |
27 namespace chromeos { | 27 namespace chromeos { |
28 class BlockingMethodCaller; | 28 class BlockingMethodCaller; |
29 namespace system { | 29 namespace system { |
30 class StatisticsProviderImpl; | 30 class StatisticsProviderImpl; |
31 } | 31 } |
32 } | 32 } |
33 namespace chrome_browser_net { | 33 namespace chrome_browser_net { |
34 class Predictor; | 34 class Predictor; |
35 } | 35 } |
36 namespace content { | 36 namespace content { |
37 class BrowserGpuChannelHostFactory; | 37 class BrowserGpuChannelHostFactory; |
38 class BrowserGpuMemoryBufferManager; | 38 class BrowserGpuMemoryBufferManager; |
39 class BrowserShutdownProfileDumper; | 39 class BrowserShutdownProfileDumper; |
40 class BrowserTestBase; | 40 class BrowserTestBase; |
41 class GpuChannelHost; | 41 class GpuChannelHost; |
42 class NestedMessagePumpAndroid; | 42 class NestedMessagePumpAndroid; |
43 class ScopedAllowWaitForAndroidLayoutTests; | 43 class ScopedAllowWaitForAndroidLayoutTests; |
44 class ScopedAllowWaitForDebugURL; | 44 class ScopedAllowWaitForDebugURL; |
45 class SoftwareOutputDeviceMus; | 45 class SoftwareOutputDeviceMus; |
46 class TextInputClientMac; | 46 class TextInputClientMac; |
| 47 class RasterWorkerPool; |
47 } // namespace content | 48 } // namespace content |
48 namespace dbus { | 49 namespace dbus { |
49 class Bus; | 50 class Bus; |
50 } | 51 } |
51 namespace disk_cache { | 52 namespace disk_cache { |
52 class BackendImpl; | 53 class BackendImpl; |
53 class InFlightIO; | 54 class InFlightIO; |
54 } | 55 } |
55 namespace gles2 { | 56 namespace gles2 { |
56 class CommandBufferClientImpl; | 57 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. | 180 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
180 // BEGIN ALLOWED USAGE. | 181 // BEGIN ALLOWED USAGE. |
181 friend class content::BrowserShutdownProfileDumper; | 182 friend class content::BrowserShutdownProfileDumper; |
182 friend class content::BrowserTestBase; | 183 friend class content::BrowserTestBase; |
183 friend class content::NestedMessagePumpAndroid; | 184 friend class content::NestedMessagePumpAndroid; |
184 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 185 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
185 friend class content::ScopedAllowWaitForDebugURL; | 186 friend class content::ScopedAllowWaitForDebugURL; |
186 friend class ::HistogramSynchronizer; | 187 friend class ::HistogramSynchronizer; |
187 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 188 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
188 friend class cc::CompletionEvent; | 189 friend class cc::CompletionEvent; |
189 friend class cc::TaskGraphRunner; | 190 friend class cc::SingleThreadTaskGraphRunner; |
| 191 friend class content::RasterWorkerPool; |
190 friend class remoting::AutoThread; | 192 friend class remoting::AutoThread; |
191 friend class ui::WindowResizeHelperMac; | 193 friend class ui::WindowResizeHelperMac; |
192 friend class MessagePumpDefault; | 194 friend class MessagePumpDefault; |
193 friend class SequencedWorkerPool; | 195 friend class SequencedWorkerPool; |
194 friend class SimpleThread; | 196 friend class SimpleThread; |
195 friend class Thread; | 197 friend class Thread; |
196 friend class ThreadTestHelper; | 198 friend class ThreadTestHelper; |
197 friend class PlatformThread; | 199 friend class PlatformThread; |
198 friend class android::JavaHandlerThread; | 200 friend class android::JavaHandlerThread; |
199 friend class gles2::CommandBufferClientImpl; | 201 friend class gles2::CommandBufferClientImpl; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 245 |
244 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 246 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
245 }; | 247 }; |
246 | 248 |
247 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 249 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
248 }; | 250 }; |
249 | 251 |
250 } // namespace base | 252 } // namespace base |
251 | 253 |
252 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 254 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |