| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 friend class | 200 friend class |
| 201 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248 | 201 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248 |
| 202 friend class | 202 friend class |
| 203 content::BrowserGpuMemoryBufferManager; // http://crbug.com/420368 | 203 content::BrowserGpuMemoryBufferManager; // http://crbug.com/420368 |
| 204 friend class content::GpuChannelHost; // http://crbug.com/125264 | 204 friend class content::GpuChannelHost; // http://crbug.com/125264 |
| 205 friend class content::TextInputClientMac; // http://crbug.com/121917 | 205 friend class content::TextInputClientMac; // http://crbug.com/121917 |
| 206 friend class dbus::Bus; // http://crbug.com/125222 | 206 friend class dbus::Bus; // http://crbug.com/125222 |
| 207 friend class disk_cache::BackendImpl; // http://crbug.com/74623 | 207 friend class disk_cache::BackendImpl; // http://crbug.com/74623 |
| 208 friend class disk_cache::InFlightIO; // http://crbug.com/74623 | 208 friend class disk_cache::InFlightIO; // http://crbug.com/74623 |
| 209 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 | 209 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 |
| 210 friend class net::NetworkChangeNotifierMac; // http://crbug.com/502005 | 210 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 |
| 211 friend class ::BrowserProcessImpl; // http://crbug.com/125207 | 211 friend class ::BrowserProcessImpl; // http://crbug.com/125207 |
| 212 friend class ::NativeBackendKWallet; // http://crbug.com/125331 | 212 friend class ::NativeBackendKWallet; // http://crbug.com/125331 |
| 213 // END USAGE THAT NEEDS TO BE FIXED. | 213 // END USAGE THAT NEEDS TO BE FIXED. |
| 214 | 214 |
| 215 #if ENABLE_THREAD_RESTRICTIONS | 215 #if ENABLE_THREAD_RESTRICTIONS |
| 216 static bool SetWaitAllowed(bool allowed); | 216 static bool SetWaitAllowed(bool allowed); |
| 217 #else | 217 #else |
| 218 static bool SetWaitAllowed(bool allowed) { return true; } | 218 static bool SetWaitAllowed(bool allowed) { return true; } |
| 219 #endif | 219 #endif |
| 220 | 220 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 233 | 233 |
| 234 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 234 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 237 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 } // namespace base | 240 } // namespace base |
| 241 | 241 |
| 242 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 242 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |