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 } | 26 } |
26 namespace chromeos { | 27 namespace chromeos { |
27 class BlockingMethodCaller; | 28 class BlockingMethodCaller; |
28 namespace system { | 29 namespace system { |
29 class StatisticsProviderImpl; | 30 class StatisticsProviderImpl; |
30 } | 31 } |
31 } | 32 } |
32 namespace chrome_browser_net { | 33 namespace chrome_browser_net { |
33 class Predictor; | 34 class Predictor; |
34 } | 35 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 171 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
171 // BEGIN ALLOWED USAGE. | 172 // BEGIN ALLOWED USAGE. |
172 friend class content::BrowserShutdownProfileDumper; | 173 friend class content::BrowserShutdownProfileDumper; |
173 friend class content::BrowserTestBase; | 174 friend class content::BrowserTestBase; |
174 friend class content::NestedMessagePumpAndroid; | 175 friend class content::NestedMessagePumpAndroid; |
175 friend class content::RenderWidgetResizeHelper; | 176 friend class content::RenderWidgetResizeHelper; |
176 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 177 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
177 friend class ::HistogramSynchronizer; | 178 friend class ::HistogramSynchronizer; |
178 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 179 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
179 friend class cc::CompletionEvent; | 180 friend class cc::CompletionEvent; |
| 181 friend class cc::TaskGraphRunner; |
180 friend class mojo::common::WatcherThreadManager; | 182 friend class mojo::common::WatcherThreadManager; |
181 friend class remoting::AutoThread; | 183 friend class remoting::AutoThread; |
182 friend class MessagePumpDefault; | 184 friend class MessagePumpDefault; |
183 friend class SequencedWorkerPool; | 185 friend class SequencedWorkerPool; |
184 friend class SimpleThread; | 186 friend class SimpleThread; |
185 friend class Thread; | 187 friend class Thread; |
186 friend class ThreadTestHelper; | 188 friend class ThreadTestHelper; |
187 friend class PlatformThread; | 189 friend class PlatformThread; |
188 friend class android::JavaHandlerThread; | 190 friend class android::JavaHandlerThread; |
189 | 191 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 229 |
228 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 230 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
229 }; | 231 }; |
230 | 232 |
231 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 233 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
232 }; | 234 }; |
233 | 235 |
234 } // namespace base | 236 } // namespace base |
235 | 237 |
236 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 238 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |