| 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" |
| 11 | 11 |
| 12 class BrowserProcessImpl; | 12 class BrowserProcessImpl; |
| 13 class HistogramSynchronizer; | 13 class HistogramSynchronizer; |
| 14 class NativeBackendKWallet; | 14 class NativeBackendKWallet; |
| 15 class ScopedAllowWaitForLegacyWebViewApi; | 15 class ScopedAllowWaitForLegacyWebViewApi; |
| 16 | 16 |
| 17 namespace blimp { |
| 18 class BlimpBrowserTest; |
| 19 } |
| 17 namespace cc { | 20 namespace cc { |
| 18 class CompletionEvent; | 21 class CompletionEvent; |
| 19 class SingleThreadTaskGraphRunner; | 22 class SingleThreadTaskGraphRunner; |
| 20 } | 23 } |
| 21 namespace chromeos { | 24 namespace chromeos { |
| 22 class BlockingMethodCaller; | 25 class BlockingMethodCaller; |
| 23 namespace system { | 26 namespace system { |
| 24 class StatisticsProviderImpl; | 27 class StatisticsProviderImpl; |
| 25 } | 28 } |
| 26 } | 29 } |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 static void AssertIOAllowed() {} | 180 static void AssertIOAllowed() {} |
| 178 static bool SetSingletonAllowed(bool allowed) { return true; } | 181 static bool SetSingletonAllowed(bool allowed) { return true; } |
| 179 static void AssertSingletonAllowed() {} | 182 static void AssertSingletonAllowed() {} |
| 180 static void DisallowWaiting() {} | 183 static void DisallowWaiting() {} |
| 181 static void AssertWaitAllowed() {} | 184 static void AssertWaitAllowed() {} |
| 182 #endif | 185 #endif |
| 183 | 186 |
| 184 private: | 187 private: |
| 185 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 188 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
| 186 // BEGIN ALLOWED USAGE. | 189 // BEGIN ALLOWED USAGE. |
| 190 friend class blimp::BlimpBrowserTest; |
| 187 friend class content::BrowserShutdownProfileDumper; | 191 friend class content::BrowserShutdownProfileDumper; |
| 188 friend class content::BrowserSurfaceViewManager; | 192 friend class content::BrowserSurfaceViewManager; |
| 189 friend class content::BrowserTestBase; | 193 friend class content::BrowserTestBase; |
| 190 friend class content::NestedMessagePumpAndroid; | 194 friend class content::NestedMessagePumpAndroid; |
| 191 friend class content::ScopedAllowWaitForAndroidLayoutTests; | 195 friend class content::ScopedAllowWaitForAndroidLayoutTests; |
| 192 friend class content::ScopedAllowWaitForDebugURL; | 196 friend class content::ScopedAllowWaitForDebugURL; |
| 193 friend class ::HistogramSynchronizer; | 197 friend class ::HistogramSynchronizer; |
| 194 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 198 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
| 195 friend class cc::CompletionEvent; | 199 friend class cc::CompletionEvent; |
| 196 friend class cc::SingleThreadTaskGraphRunner; | 200 friend class cc::SingleThreadTaskGraphRunner; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 259 |
| 256 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 257 }; | 261 }; |
| 258 | 262 |
| 259 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 260 }; | 264 }; |
| 261 | 265 |
| 262 } // namespace base | 266 } // namespace base |
| 263 | 267 |
| 264 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |