| 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/macros.h" | 9 #include "base/macros.h" |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 namespace remoting { | 75 namespace remoting { |
| 76 class AutoThread; | 76 class AutoThread; |
| 77 } | 77 } |
| 78 | 78 |
| 79 namespace ui { | 79 namespace ui { |
| 80 class WindowResizeHelperMac; | 80 class WindowResizeHelperMac; |
| 81 } | 81 } |
| 82 | 82 |
| 83 namespace views { | 83 namespace views { |
| 84 class ScreenMus; |
| 84 class WindowManagerConnection; | 85 class WindowManagerConnection; |
| 85 } | 86 } |
| 86 | 87 |
| 87 namespace base { | 88 namespace base { |
| 88 | 89 |
| 89 namespace android { | 90 namespace android { |
| 90 class JavaHandlerThread; | 91 class JavaHandlerThread; |
| 91 } | 92 } |
| 92 | 93 |
| 93 class SequencedWorkerPool; | 94 class SequencedWorkerPool; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 friend class dbus::Bus; // http://crbug.com/125222 | 227 friend class dbus::Bus; // http://crbug.com/125222 |
| 227 friend class disk_cache::BackendImpl; // http://crbug.com/74623 | 228 friend class disk_cache::BackendImpl; // http://crbug.com/74623 |
| 228 friend class disk_cache::InFlightIO; // http://crbug.com/74623 | 229 friend class disk_cache::InFlightIO; // http://crbug.com/74623 |
| 229 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 | 230 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 |
| 230 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 | 231 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 |
| 231 friend class ::BrowserProcessImpl; // http://crbug.com/125207 | 232 friend class ::BrowserProcessImpl; // http://crbug.com/125207 |
| 232 friend class ::NativeBackendKWallet; // http://crbug.com/125331 | 233 friend class ::NativeBackendKWallet; // http://crbug.com/125331 |
| 233 #if !defined(OFFICIAL_BUILD) | 234 #if !defined(OFFICIAL_BUILD) |
| 234 friend class content::SoftwareOutputDeviceMus; // Interim non-production code | 235 friend class content::SoftwareOutputDeviceMus; // Interim non-production code |
| 235 #endif | 236 #endif |
| 237 friend class views::ScreenMus; |
| 236 friend class views::WindowManagerConnection; | 238 friend class views::WindowManagerConnection; |
| 237 // END USAGE THAT NEEDS TO BE FIXED. | 239 // END USAGE THAT NEEDS TO BE FIXED. |
| 238 | 240 |
| 239 #if ENABLE_THREAD_RESTRICTIONS | 241 #if ENABLE_THREAD_RESTRICTIONS |
| 240 static bool SetWaitAllowed(bool allowed); | 242 static bool SetWaitAllowed(bool allowed); |
| 241 #else | 243 #else |
| 242 static bool SetWaitAllowed(bool allowed) { return true; } | 244 static bool SetWaitAllowed(bool allowed) { return true; } |
| 243 #endif | 245 #endif |
| 244 | 246 |
| 245 // Constructing a ScopedAllowWait temporarily allows waiting on the current | 247 // Constructing a ScopedAllowWait temporarily allows waiting on the current |
| (...skipping 11 matching lines...) Expand all Loading... |
| 257 | 259 |
| 258 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 259 }; | 261 }; |
| 260 | 262 |
| 261 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 262 }; | 264 }; |
| 263 | 265 |
| 264 } // namespace base | 266 } // namespace base |
| 265 | 267 |
| 266 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |