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 24 matching lines...) Expand all Loading... |
35 class BlockingMethodCaller; | 35 class BlockingMethodCaller; |
36 namespace system { | 36 namespace system { |
37 class StatisticsProviderImpl; | 37 class StatisticsProviderImpl; |
38 } | 38 } |
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 GLHelper; | 46 class GLHelper; |
46 class GpuChannelHost; | 47 class GpuChannelHost; |
47 class RenderWidgetHelper; | 48 class RenderWidgetHelper; |
48 class TextInputClientMac; | 49 class TextInputClientMac; |
49 } | 50 } |
50 namespace dbus { | 51 namespace dbus { |
51 class Bus; | 52 class Bus; |
52 } | 53 } |
53 namespace disk_cache { | 54 namespace disk_cache { |
54 class BackendImpl; | 55 class BackendImpl; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 static void AssertIOAllowed() {} | 163 static void AssertIOAllowed() {} |
163 static bool SetSingletonAllowed(bool allowed) { return true; } | 164 static bool SetSingletonAllowed(bool allowed) { return true; } |
164 static void AssertSingletonAllowed() {} | 165 static void AssertSingletonAllowed() {} |
165 static void DisallowWaiting() {} | 166 static void DisallowWaiting() {} |
166 static void AssertWaitAllowed() {} | 167 static void AssertWaitAllowed() {} |
167 #endif | 168 #endif |
168 | 169 |
169 private: | 170 private: |
170 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 171 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
171 // BEGIN ALLOWED USAGE. | 172 // BEGIN ALLOWED USAGE. |
| 173 friend class content::BrowserTestBase; |
172 friend class content::RenderWidgetHelper; | 174 friend class content::RenderWidgetHelper; |
173 friend class ::HistogramSynchronizer; | 175 friend class ::HistogramSynchronizer; |
174 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 176 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
175 friend class ::TestingAutomationProvider; | 177 friend class ::TestingAutomationProvider; |
176 friend class cc::CompletionEvent; | 178 friend class cc::CompletionEvent; |
177 friend class remoting::AutoThread; | 179 friend class remoting::AutoThread; |
178 friend class MessagePumpDefault; | 180 friend class MessagePumpDefault; |
179 friend class SequencedWorkerPool; | 181 friend class SequencedWorkerPool; |
180 friend class SimpleThread; | 182 friend class SimpleThread; |
181 friend class Thread; | 183 friend class Thread; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 230 |
229 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 231 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
230 }; | 232 }; |
231 | 233 |
232 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 234 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
233 }; | 235 }; |
234 | 236 |
235 } // namespace base | 237 } // namespace base |
236 | 238 |
237 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 239 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |