| 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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class StatisticsProviderImpl; | 24 class StatisticsProviderImpl; |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 namespace chrome_browser_net { | 27 namespace chrome_browser_net { |
| 28 class Predictor; | 28 class Predictor; |
| 29 } | 29 } |
| 30 namespace content { | 30 namespace content { |
| 31 class BrowserGpuChannelHostFactory; | 31 class BrowserGpuChannelHostFactory; |
| 32 class BrowserGpuMemoryBufferManager; | 32 class BrowserGpuMemoryBufferManager; |
| 33 class BrowserMainLoop; | 33 class BrowserMainLoop; |
| 34 class BrowserProcessSubThread; |
| 34 class BrowserShutdownProfileDumper; | 35 class BrowserShutdownProfileDumper; |
| 35 class BrowserSurfaceViewManager; | 36 class BrowserSurfaceViewManager; |
| 36 class BrowserTestBase; | 37 class BrowserTestBase; |
| 37 class CategorizedWorkerPool; | 38 class CategorizedWorkerPool; |
| 38 class NestedMessagePumpAndroid; | 39 class NestedMessagePumpAndroid; |
| 39 class ScopedAllowWaitForAndroidLayoutTests; | 40 class ScopedAllowWaitForAndroidLayoutTests; |
| 40 class ScopedAllowWaitForDebugURL; | 41 class ScopedAllowWaitForDebugURL; |
| 41 class SoftwareOutputDeviceMus; | 42 class SoftwareOutputDeviceMus; |
| 42 class TextInputClientMac; | 43 class TextInputClientMac; |
| 43 } // namespace content | 44 } // namespace content |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 static bool SetSingletonAllowed(bool allowed) { return true; } | 170 static bool SetSingletonAllowed(bool allowed) { return true; } |
| 170 static void AssertSingletonAllowed() {} | 171 static void AssertSingletonAllowed() {} |
| 171 static void DisallowWaiting() {} | 172 static void DisallowWaiting() {} |
| 172 static void AssertWaitAllowed() {} | 173 static void AssertWaitAllowed() {} |
| 173 #endif | 174 #endif |
| 174 | 175 |
| 175 private: | 176 private: |
| 176 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 177 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
| 177 // BEGIN ALLOWED USAGE. | 178 // BEGIN ALLOWED USAGE. |
| 178 friend class content::BrowserMainLoop; | 179 friend class content::BrowserMainLoop; |
| 180 friend class content::BrowserProcessSubThread; |
| 179 friend class content::BrowserShutdownProfileDumper; | 181 friend class content::BrowserShutdownProfileDumper; |
| 180 friend class content::BrowserSurfaceViewManager; | 182 friend class content::BrowserSurfaceViewManager; |
| 181 friend class content::BrowserTestBase; | 183 friend class content::BrowserTestBase; |
| 182 friend class content::NestedMessagePumpAndroid; | 184 friend class content::NestedMessagePumpAndroid; |
| 183 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 185 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
| 184 friend class content::ScopedAllowWaitForDebugURL; | 186 friend class content::ScopedAllowWaitForDebugURL; |
| 185 friend class ::HistogramSynchronizer; | 187 friend class ::HistogramSynchronizer; |
| 186 friend class internal::TaskTracker; | 188 friend class internal::TaskTracker; |
| 187 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 189 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
| 188 friend class cc::CompletionEvent; | 190 friend class cc::CompletionEvent; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 250 |
| 249 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 251 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 250 }; | 252 }; |
| 251 | 253 |
| 252 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 254 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 253 }; | 255 }; |
| 254 | 256 |
| 255 } // namespace base | 257 } // namespace base |
| 256 | 258 |
| 257 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 259 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |