| 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 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 namespace content { | 30 namespace content { |
| 31 class BrowserGpuChannelHostFactory; | 31 class BrowserGpuChannelHostFactory; |
| 32 class BrowserGpuMemoryBufferManager; | 32 class BrowserGpuMemoryBufferManager; |
| 33 class BrowserShutdownProfileDumper; | 33 class BrowserShutdownProfileDumper; |
| 34 class BrowserSurfaceViewManager; | 34 class BrowserSurfaceViewManager; |
| 35 class BrowserTestBase; | 35 class BrowserTestBase; |
| 36 class NestedMessagePumpAndroid; | 36 class NestedMessagePumpAndroid; |
| 37 class ScopedAllowWaitForAndroidLayoutTests; | 37 class ScopedAllowWaitForAndroidLayoutTests; |
| 38 class ScopedAllowWaitForDebugURL; | 38 class ScopedAllowWaitForDebugURL; |
| 39 class SoftwareOutputDeviceMus; | |
| 40 class TextInputClientMac; | 39 class TextInputClientMac; |
| 41 class CategorizedWorkerPool; | 40 class CategorizedWorkerPool; |
| 42 } // namespace content | 41 } // namespace content |
| 43 namespace dbus { | 42 namespace dbus { |
| 44 class Bus; | 43 class Bus; |
| 45 } | 44 } |
| 46 namespace disk_cache { | 45 namespace disk_cache { |
| 47 class BackendImpl; | 46 class BackendImpl; |
| 48 class InFlightIO; | 47 class InFlightIO; |
| 49 } | 48 } |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 content::BrowserGpuMemoryBufferManager; // http://crbug.com/420368 | 220 content::BrowserGpuMemoryBufferManager; // http://crbug.com/420368 |
| 222 friend class content::TextInputClientMac; // http://crbug.com/121917 | 221 friend class content::TextInputClientMac; // http://crbug.com/121917 |
| 223 friend class dbus::Bus; // http://crbug.com/125222 | 222 friend class dbus::Bus; // http://crbug.com/125222 |
| 224 friend class disk_cache::BackendImpl; // http://crbug.com/74623 | 223 friend class disk_cache::BackendImpl; // http://crbug.com/74623 |
| 225 friend class disk_cache::InFlightIO; // http://crbug.com/74623 | 224 friend class disk_cache::InFlightIO; // http://crbug.com/74623 |
| 226 friend class gpu::GpuChannelHost; // http://crbug.com/125264 | 225 friend class gpu::GpuChannelHost; // http://crbug.com/125264 |
| 227 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 | 226 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 |
| 228 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 | 227 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 |
| 229 friend class ::BrowserProcessImpl; // http://crbug.com/125207 | 228 friend class ::BrowserProcessImpl; // http://crbug.com/125207 |
| 230 friend class ::NativeBackendKWallet; // http://crbug.com/125331 | 229 friend class ::NativeBackendKWallet; // http://crbug.com/125331 |
| 231 #if !defined(OFFICIAL_BUILD) | |
| 232 friend class content::SoftwareOutputDeviceMus; // Interim non-production code | |
| 233 #endif | |
| 234 friend class views::ScreenMus; | 230 friend class views::ScreenMus; |
| 235 // END USAGE THAT NEEDS TO BE FIXED. | 231 // END USAGE THAT NEEDS TO BE FIXED. |
| 236 | 232 |
| 237 #if DCHECK_IS_ON() | 233 #if DCHECK_IS_ON() |
| 238 static bool SetWaitAllowed(bool allowed); | 234 static bool SetWaitAllowed(bool allowed); |
| 239 #else | 235 #else |
| 240 static bool SetWaitAllowed(bool allowed) { return true; } | 236 static bool SetWaitAllowed(bool allowed) { return true; } |
| 241 #endif | 237 #endif |
| 242 | 238 |
| 243 // Constructing a ScopedAllowWait temporarily allows waiting on the current | 239 // Constructing a ScopedAllowWait temporarily allows waiting on the current |
| (...skipping 11 matching lines...) Expand all Loading... |
| 255 | 251 |
| 256 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 252 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 257 }; | 253 }; |
| 258 | 254 |
| 259 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 255 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 260 }; | 256 }; |
| 261 | 257 |
| 262 } // namespace base | 258 } // namespace base |
| 263 | 259 |
| 264 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 260 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |