| 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/macros.h" | 9 #include "base/macros.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 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 BrowserSurfaceViewManager; |
| 40 class BrowserTestBase; | 41 class BrowserTestBase; |
| 41 class NestedMessagePumpAndroid; | 42 class NestedMessagePumpAndroid; |
| 42 class ScopedAllowWaitForAndroidLayoutTests; | 43 class ScopedAllowWaitForAndroidLayoutTests; |
| 43 class ScopedAllowWaitForDebugURL; | 44 class ScopedAllowWaitForDebugURL; |
| 44 class SoftwareOutputDeviceMus; | 45 class SoftwareOutputDeviceMus; |
| 45 class TextInputClientMac; | 46 class TextInputClientMac; |
| 46 class RasterWorkerPool; | 47 class RasterWorkerPool; |
| 47 } // namespace content | 48 } // namespace content |
| 48 namespace dbus { | 49 namespace dbus { |
| 49 class Bus; | 50 class Bus; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 static bool SetSingletonAllowed(bool allowed) { return true; } | 185 static bool SetSingletonAllowed(bool allowed) { return true; } |
| 185 static void AssertSingletonAllowed() {} | 186 static void AssertSingletonAllowed() {} |
| 186 static void DisallowWaiting() {} | 187 static void DisallowWaiting() {} |
| 187 static void AssertWaitAllowed() {} | 188 static void AssertWaitAllowed() {} |
| 188 #endif | 189 #endif |
| 189 | 190 |
| 190 private: | 191 private: |
| 191 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 192 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
| 192 // BEGIN ALLOWED USAGE. | 193 // BEGIN ALLOWED USAGE. |
| 193 friend class content::BrowserShutdownProfileDumper; | 194 friend class content::BrowserShutdownProfileDumper; |
| 195 friend class content::BrowserSurfaceViewManager; |
| 194 friend class content::BrowserTestBase; | 196 friend class content::BrowserTestBase; |
| 195 friend class content::NestedMessagePumpAndroid; | 197 friend class content::NestedMessagePumpAndroid; |
| 196 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 198 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
| 197 friend class content::ScopedAllowWaitForDebugURL; | 199 friend class content::ScopedAllowWaitForDebugURL; |
| 198 friend class ::HistogramSynchronizer; | 200 friend class ::HistogramSynchronizer; |
| 199 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 201 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
| 200 friend class cc::CompletionEvent; | 202 friend class cc::CompletionEvent; |
| 201 friend class cc::SingleThreadTaskGraphRunner; | 203 friend class cc::SingleThreadTaskGraphRunner; |
| 202 friend class content::RasterWorkerPool; | 204 friend class content::RasterWorkerPool; |
| 203 friend class remoting::AutoThread; | 205 friend class remoting::AutoThread; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 261 |
| 260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 262 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 261 }; | 263 }; |
| 262 | 264 |
| 263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 265 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 264 }; | 266 }; |
| 265 | 267 |
| 266 } // namespace base | 268 } // namespace base |
| 267 | 269 |
| 268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 270 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |