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