| 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 BrowserShutdownProfileDumper; |
| 45 class BrowserTestBase; | 46 class BrowserTestBase; |
| 46 class GLHelper; | 47 class GLHelper; |
| 47 class GpuChannelHost; | 48 class GpuChannelHost; |
| 48 class NestedMessagePumpAndroid; | 49 class NestedMessagePumpAndroid; |
| 49 class RenderWidgetHelper; | 50 class RenderWidgetHelper; |
| 50 class ScopedAllowWaitForAndroidLayoutTests; | 51 class ScopedAllowWaitForAndroidLayoutTests; |
| 51 class TextInputClientMac; | 52 class TextInputClientMac; |
| 52 } | 53 } |
| 53 namespace dbus { | 54 namespace dbus { |
| 54 class Bus; | 55 class Bus; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 static void AssertIOAllowed() {} | 170 static void AssertIOAllowed() {} |
| 170 static bool SetSingletonAllowed(bool allowed) { return true; } | 171 static bool SetSingletonAllowed(bool allowed) { return true; } |
| 171 static void AssertSingletonAllowed() {} | 172 static void AssertSingletonAllowed() {} |
| 172 static void DisallowWaiting() {} | 173 static void DisallowWaiting() {} |
| 173 static void AssertWaitAllowed() {} | 174 static void AssertWaitAllowed() {} |
| 174 #endif | 175 #endif |
| 175 | 176 |
| 176 private: | 177 private: |
| 177 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 178 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
| 178 // BEGIN ALLOWED USAGE. | 179 // BEGIN ALLOWED USAGE. |
| 180 friend class content::BrowserShutdownProfileDumper; |
| 179 friend class content::BrowserTestBase; | 181 friend class content::BrowserTestBase; |
| 180 friend class content::NestedMessagePumpAndroid; | 182 friend class content::NestedMessagePumpAndroid; |
| 181 friend class content::RenderWidgetHelper; | 183 friend class content::RenderWidgetHelper; |
| 182 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 184 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
| 183 friend class ::HistogramSynchronizer; | 185 friend class ::HistogramSynchronizer; |
| 184 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 186 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
| 185 friend class ::TestingAutomationProvider; | 187 friend class ::TestingAutomationProvider; |
| 186 friend class cc::CompletionEvent; | 188 friend class cc::CompletionEvent; |
| 187 friend class remoting::AutoThread; | 189 friend class remoting::AutoThread; |
| 188 friend class MessagePumpDefault; | 190 friend class MessagePumpDefault; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 242 |
| 241 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 243 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 242 }; | 244 }; |
| 243 | 245 |
| 244 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 246 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 245 }; | 247 }; |
| 246 | 248 |
| 247 } // namespace base | 249 } // namespace base |
| 248 | 250 |
| 249 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 251 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |