| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 namespace disk_cache { | 53 namespace disk_cache { |
| 54 class BackendImpl; | 54 class BackendImpl; |
| 55 class InFlightIO; | 55 class InFlightIO; |
| 56 } | 56 } |
| 57 namespace media { | 57 namespace media { |
| 58 class AudioOutputController; | 58 class AudioOutputController; |
| 59 } | 59 } |
| 60 namespace net { | 60 namespace net { |
| 61 class FileStreamPosix; | 61 class FileStreamPosix; |
| 62 class FileStreamWin; | 62 class FileStreamWin; |
| 63 class NetworkManagerApi; | 63 namespace internal { |
| 64 class AddressTrackerLinux; |
| 65 } |
| 64 } | 66 } |
| 65 | 67 |
| 66 namespace remoting { | 68 namespace remoting { |
| 67 class AutoThread; | 69 class AutoThread; |
| 68 } | 70 } |
| 69 | 71 |
| 70 namespace base { | 72 namespace base { |
| 71 | 73 |
| 72 class SequencedWorkerPool; | 74 class SequencedWorkerPool; |
| 73 class SimpleThread; | 75 class SimpleThread; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248 | 192 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248 |
| 191 friend class content::GLHelper; // http://crbug.com/125415 | 193 friend class content::GLHelper; // http://crbug.com/125415 |
| 192 friend class content::GpuChannelHost; // http://crbug.com/125264 | 194 friend class content::GpuChannelHost; // http://crbug.com/125264 |
| 193 friend class content::TextInputClientMac; // http://crbug.com/121917 | 195 friend class content::TextInputClientMac; // http://crbug.com/121917 |
| 194 friend class dbus::Bus; // http://crbug.com/125222 | 196 friend class dbus::Bus; // http://crbug.com/125222 |
| 195 friend class disk_cache::BackendImpl; // http://crbug.com/74623 | 197 friend class disk_cache::BackendImpl; // http://crbug.com/74623 |
| 196 friend class disk_cache::InFlightIO; // http://crbug.com/74623 | 198 friend class disk_cache::InFlightIO; // http://crbug.com/74623 |
| 197 friend class media::AudioOutputController; // http://crbug.com/120973 | 199 friend class media::AudioOutputController; // http://crbug.com/120973 |
| 198 friend class net::FileStreamPosix; // http://crbug.com/115067 | 200 friend class net::FileStreamPosix; // http://crbug.com/115067 |
| 199 friend class net::FileStreamWin; // http://crbug.com/115067 | 201 friend class net::FileStreamWin; // http://crbug.com/115067 |
| 200 friend class net::NetworkManagerApi; // http://crbug.com/125097 | 202 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 |
| 201 friend class ::AcceleratedPresenter; // http://crbug.com/125391 | 203 friend class ::AcceleratedPresenter; // http://crbug.com/125391 |
| 202 friend class ::BrowserProcessImpl; // http://crbug.com/125207 | 204 friend class ::BrowserProcessImpl; // http://crbug.com/125207 |
| 203 friend class ::MetricsService; // http://crbug.com/124954 | 205 friend class ::MetricsService; // http://crbug.com/124954 |
| 204 friend class ::NativeBackendKWallet; // http://crbug.com/125331 | 206 friend class ::NativeBackendKWallet; // http://crbug.com/125331 |
| 205 // END USAGE THAT NEEDS TO BE FIXED. | 207 // END USAGE THAT NEEDS TO BE FIXED. |
| 206 | 208 |
| 207 #if ENABLE_THREAD_RESTRICTIONS | 209 #if ENABLE_THREAD_RESTRICTIONS |
| 208 static bool SetWaitAllowed(bool allowed); | 210 static bool SetWaitAllowed(bool allowed); |
| 209 #else | 211 #else |
| 210 static bool SetWaitAllowed(bool allowed) { return true; } | 212 static bool SetWaitAllowed(bool allowed) { return true; } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 225 | 227 |
| 226 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 228 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 231 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
| 230 }; | 232 }; |
| 231 | 233 |
| 232 } // namespace base | 234 } // namespace base |
| 233 | 235 |
| 234 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 236 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
| OLD | NEW |