| 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/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 class BrowserProcessImpl; | 12 class BrowserProcessImpl; |
| 13 class HistogramSynchronizer; | 13 class HistogramSynchronizer; |
| 14 class NativeBackendKWallet; | 14 class NativeBackendKWallet; |
| 15 class ScopedAllowWaitForLegacyWebViewApi; | 15 |
| 16 namespace android_webview { |
| 17 class CookieManager; |
| 18 } |
| 16 | 19 |
| 17 namespace cc { | 20 namespace cc { |
| 18 class CompletionEvent; | 21 class CompletionEvent; |
| 19 class SingleThreadTaskGraphRunner; | 22 class SingleThreadTaskGraphRunner; |
| 20 } | 23 } |
| 21 namespace chromeos { | 24 namespace chromeos { |
| 22 class BlockingMethodCaller; | 25 class BlockingMethodCaller; |
| 23 namespace system { | 26 namespace system { |
| 24 class StatisticsProviderImpl; | 27 class StatisticsProviderImpl; |
| 25 } | 28 } |
| 26 } | 29 } |
| 27 namespace chrome_browser_net { | 30 namespace chrome_browser_net { |
| 28 class Predictor; | 31 class Predictor; |
| 29 } | 32 } |
| 30 namespace content { | 33 namespace content { |
| 31 class BrowserGpuChannelHostFactory; | 34 class BrowserGpuChannelHostFactory; |
| 32 class BrowserGpuMemoryBufferManager; | 35 class BrowserGpuMemoryBufferManager; |
| 33 class BrowserShutdownProfileDumper; | 36 class BrowserShutdownProfileDumper; |
| 34 class BrowserSurfaceViewManager; | 37 class BrowserSurfaceViewManager; |
| 35 class BrowserTestBase; | 38 class BrowserTestBase; |
| 36 class NestedMessagePumpAndroid; | 39 class NestedMessagePumpAndroid; |
| 37 class ScopedAllowWaitForAndroidLayoutTests; | 40 class ScopedAllowWaitForAndroidLayoutTests; |
| 38 class ScopedAllowWaitForDebugURL; | 41 class ScopedAllowWaitForDebugURL; |
| 39 class SoftwareOutputDeviceMus; | 42 class SoftwareOutputDeviceMus; |
| 43 class SynchronousCompositor; |
| 44 class SynchronousCompositorBrowserFilter; |
| 45 class SynchronousCompositorHost; |
| 40 class TextInputClientMac; | 46 class TextInputClientMac; |
| 41 class CategorizedWorkerPool; | 47 class CategorizedWorkerPool; |
| 42 } // namespace content | 48 } // namespace content |
| 43 namespace dbus { | 49 namespace dbus { |
| 44 class Bus; | 50 class Bus; |
| 45 } | 51 } |
| 46 namespace disk_cache { | 52 namespace disk_cache { |
| 47 class BackendImpl; | 53 class BackendImpl; |
| 48 class InFlightIO; | 54 class InFlightIO; |
| 49 } | 55 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 static void AssertIOAllowed() {} | 173 static void AssertIOAllowed() {} |
| 168 static bool SetSingletonAllowed(bool allowed) { return true; } | 174 static bool SetSingletonAllowed(bool allowed) { return true; } |
| 169 static void AssertSingletonAllowed() {} | 175 static void AssertSingletonAllowed() {} |
| 170 static void DisallowWaiting() {} | 176 static void DisallowWaiting() {} |
| 171 static void AssertWaitAllowed() {} | 177 static void AssertWaitAllowed() {} |
| 172 #endif | 178 #endif |
| 173 | 179 |
| 174 private: | 180 private: |
| 175 // 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. |
| 176 // BEGIN ALLOWED USAGE. | 182 // BEGIN ALLOWED USAGE. |
| 183 friend class android_webview::CookieManager; |
| 177 friend class content::BrowserShutdownProfileDumper; | 184 friend class content::BrowserShutdownProfileDumper; |
| 178 friend class content::BrowserSurfaceViewManager; | 185 friend class content::BrowserSurfaceViewManager; |
| 179 friend class content::BrowserTestBase; | 186 friend class content::BrowserTestBase; |
| 180 friend class content::NestedMessagePumpAndroid; | 187 friend class content::NestedMessagePumpAndroid; |
| 181 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 188 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
| 182 friend class content::ScopedAllowWaitForDebugURL; | 189 friend class content::ScopedAllowWaitForDebugURL; |
| 190 friend class content::SynchronousCompositor; |
| 191 friend class content::SynchronousCompositorBrowserFilter; |
| 192 friend class content::SynchronousCompositorHost; |
| 183 friend class ::HistogramSynchronizer; | 193 friend class ::HistogramSynchronizer; |
| 184 friend class internal::TaskTracker; | 194 friend class internal::TaskTracker; |
| 185 friend class ::ScopedAllowWaitForLegacyWebViewApi; | |
| 186 friend class cc::CompletionEvent; | 195 friend class cc::CompletionEvent; |
| 187 friend class cc::SingleThreadTaskGraphRunner; | 196 friend class cc::SingleThreadTaskGraphRunner; |
| 188 friend class content::CategorizedWorkerPool; | 197 friend class content::CategorizedWorkerPool; |
| 189 friend class remoting::AutoThread; | 198 friend class remoting::AutoThread; |
| 190 friend class ui::WindowResizeHelperMac; | 199 friend class ui::WindowResizeHelperMac; |
| 191 friend class MessagePumpDefault; | 200 friend class MessagePumpDefault; |
| 192 friend class SequencedWorkerPool; | 201 friend class SequencedWorkerPool; |
| 193 friend class SimpleThread; | 202 friend class SimpleThread; |
| 194 friend class Thread; | 203 friend class Thread; |
| 195 friend class ThreadTestHelper; | 204 friend class ThreadTestHelper; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 255 |
| 247 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 256 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 248 }; | 257 }; |
| 249 | 258 |
| 250 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 259 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 251 }; | 260 }; |
| 252 | 261 |
| 253 } // namespace base | 262 } // namespace base |
| 254 | 263 |
| 255 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 264 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |