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 12 matching lines...) Expand all Loading... |
23 namespace system { | 23 namespace system { |
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 BrowserShutdownProfileDumper; | 34 class BrowserShutdownProfileDumper; |
34 class BrowserSurfaceViewManager; | 35 class BrowserSurfaceViewManager; |
35 class BrowserTestBase; | 36 class BrowserTestBase; |
| 37 class CategorizedWorkerPool; |
36 class NestedMessagePumpAndroid; | 38 class NestedMessagePumpAndroid; |
37 class ScopedAllowWaitForAndroidLayoutTests; | 39 class ScopedAllowWaitForAndroidLayoutTests; |
38 class ScopedAllowWaitForDebugURL; | 40 class ScopedAllowWaitForDebugURL; |
39 class SoftwareOutputDeviceMus; | 41 class SoftwareOutputDeviceMus; |
40 class TextInputClientMac; | 42 class TextInputClientMac; |
41 class CategorizedWorkerPool; | |
42 } // namespace content | 43 } // namespace content |
43 namespace dbus { | 44 namespace dbus { |
44 class Bus; | 45 class Bus; |
45 } | 46 } |
46 namespace disk_cache { | 47 namespace disk_cache { |
47 class BackendImpl; | 48 class BackendImpl; |
48 class InFlightIO; | 49 class InFlightIO; |
49 } | 50 } |
50 namespace gpu { | 51 namespace gpu { |
51 class GpuChannelHost; | 52 class GpuChannelHost; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 static void AssertIOAllowed() {} | 168 static void AssertIOAllowed() {} |
168 static bool SetSingletonAllowed(bool allowed) { return true; } | 169 static bool SetSingletonAllowed(bool allowed) { return true; } |
169 static void AssertSingletonAllowed() {} | 170 static void AssertSingletonAllowed() {} |
170 static void DisallowWaiting() {} | 171 static void DisallowWaiting() {} |
171 static void AssertWaitAllowed() {} | 172 static void AssertWaitAllowed() {} |
172 #endif | 173 #endif |
173 | 174 |
174 private: | 175 private: |
175 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 176 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
176 // BEGIN ALLOWED USAGE. | 177 // BEGIN ALLOWED USAGE. |
| 178 friend class content::BrowserMainLoop; |
177 friend class content::BrowserShutdownProfileDumper; | 179 friend class content::BrowserShutdownProfileDumper; |
178 friend class content::BrowserSurfaceViewManager; | 180 friend class content::BrowserSurfaceViewManager; |
179 friend class content::BrowserTestBase; | 181 friend class content::BrowserTestBase; |
180 friend class content::NestedMessagePumpAndroid; | 182 friend class content::NestedMessagePumpAndroid; |
181 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 183 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
182 friend class content::ScopedAllowWaitForDebugURL; | 184 friend class content::ScopedAllowWaitForDebugURL; |
183 friend class ::HistogramSynchronizer; | 185 friend class ::HistogramSynchronizer; |
184 friend class internal::TaskTracker; | 186 friend class internal::TaskTracker; |
185 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 187 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
186 friend class cc::CompletionEvent; | 188 friend class cc::CompletionEvent; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 248 |
247 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 249 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
248 }; | 250 }; |
249 | 251 |
250 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 252 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
251 }; | 253 }; |
252 | 254 |
253 } // namespace base | 255 } // namespace base |
254 | 256 |
255 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 257 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |