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 |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 namespace chrome_browser_net { | 40 namespace chrome_browser_net { |
41 class Predictor; | 41 class Predictor; |
42 } | 42 } |
43 namespace content { | 43 namespace content { |
44 class BrowserGpuChannelHostFactory; | 44 class BrowserGpuChannelHostFactory; |
45 class BrowserTestBase; | 45 class BrowserTestBase; |
46 class GLHelper; | 46 class GLHelper; |
47 class GpuChannelHost; | 47 class GpuChannelHost; |
48 class RenderWidgetHelper; | 48 class RenderWidgetHelper; |
| 49 class ScopedAllowWaitForAndroidLayoutTests; |
49 class TextInputClientMac; | 50 class TextInputClientMac; |
50 } | 51 } |
51 namespace dbus { | 52 namespace dbus { |
52 class Bus; | 53 class Bus; |
53 } | 54 } |
54 namespace disk_cache { | 55 namespace disk_cache { |
55 class BackendImpl; | 56 class BackendImpl; |
56 class InFlightIO; | 57 class InFlightIO; |
57 } | 58 } |
58 namespace media { | 59 namespace media { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 static void AssertSingletonAllowed() {} | 166 static void AssertSingletonAllowed() {} |
166 static void DisallowWaiting() {} | 167 static void DisallowWaiting() {} |
167 static void AssertWaitAllowed() {} | 168 static void AssertWaitAllowed() {} |
168 #endif | 169 #endif |
169 | 170 |
170 private: | 171 private: |
171 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 172 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
172 // BEGIN ALLOWED USAGE. | 173 // BEGIN ALLOWED USAGE. |
173 friend class content::BrowserTestBase; | 174 friend class content::BrowserTestBase; |
174 friend class content::RenderWidgetHelper; | 175 friend class content::RenderWidgetHelper; |
| 176 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
175 friend class ::HistogramSynchronizer; | 177 friend class ::HistogramSynchronizer; |
176 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 178 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
177 friend class ::TestingAutomationProvider; | 179 friend class ::TestingAutomationProvider; |
178 friend class cc::CompletionEvent; | 180 friend class cc::CompletionEvent; |
179 friend class remoting::AutoThread; | 181 friend class remoting::AutoThread; |
180 friend class MessagePumpDefault; | 182 friend class MessagePumpDefault; |
181 friend class SequencedWorkerPool; | 183 friend class SequencedWorkerPool; |
182 friend class SimpleThread; | 184 friend class SimpleThread; |
183 friend class Thread; | 185 friend class Thread; |
184 friend class ThreadTestHelper; | 186 friend class ThreadTestHelper; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 233 |
232 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 234 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
233 }; | 235 }; |
234 | 236 |
235 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 237 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
236 }; | 238 }; |
237 | 239 |
238 } // namespace base | 240 } // namespace base |
239 | 241 |
240 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 242 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |