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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class Bus; | 47 class Bus; |
48 } | 48 } |
49 namespace disk_cache { | 49 namespace disk_cache { |
50 class BackendImpl; | 50 class BackendImpl; |
51 class InFlightIO; | 51 class InFlightIO; |
52 } | 52 } |
53 namespace gpu { | 53 namespace gpu { |
54 class GpuChannelHost; | 54 class GpuChannelHost; |
55 } | 55 } |
56 namespace mojo { | 56 namespace mojo { |
57 namespace common { | |
58 class MessagePumpMojo; | |
59 } | |
60 class SyncCallRestrictions; | 57 class SyncCallRestrictions; |
61 } | 58 } |
62 namespace ui { | 59 namespace ui { |
63 class CommandBufferClientImpl; | 60 class CommandBufferClientImpl; |
64 class CommandBufferLocal; | 61 class CommandBufferLocal; |
65 class GpuState; | 62 class GpuState; |
66 } | 63 } |
67 namespace net { | 64 namespace net { |
68 class NetworkChangeNotifierMac; | 65 class NetworkChangeNotifierMac; |
69 namespace internal { | 66 namespace internal { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 friend class content::CategorizedWorkerPool; | 198 friend class content::CategorizedWorkerPool; |
202 friend class remoting::AutoThread; | 199 friend class remoting::AutoThread; |
203 friend class ui::WindowResizeHelperMac; | 200 friend class ui::WindowResizeHelperMac; |
204 friend class MessagePumpDefault; | 201 friend class MessagePumpDefault; |
205 friend class SequencedWorkerPool; | 202 friend class SequencedWorkerPool; |
206 friend class SimpleThread; | 203 friend class SimpleThread; |
207 friend class Thread; | 204 friend class Thread; |
208 friend class ThreadTestHelper; | 205 friend class ThreadTestHelper; |
209 friend class PlatformThread; | 206 friend class PlatformThread; |
210 friend class android::JavaHandlerThread; | 207 friend class android::JavaHandlerThread; |
211 friend class mojo::common::MessagePumpMojo; | |
212 friend class mojo::SyncCallRestrictions; | 208 friend class mojo::SyncCallRestrictions; |
213 friend class ui::CommandBufferClientImpl; | 209 friend class ui::CommandBufferClientImpl; |
214 friend class ui::CommandBufferLocal; | 210 friend class ui::CommandBufferLocal; |
215 friend class ui::GpuState; | 211 friend class ui::GpuState; |
216 | 212 |
217 // END ALLOWED USAGE. | 213 // END ALLOWED USAGE. |
218 // BEGIN USAGE THAT NEEDS TO BE FIXED. | 214 // BEGIN USAGE THAT NEEDS TO BE FIXED. |
219 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 | 215 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 |
220 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/
125385 | 216 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/
125385 |
221 friend class chrome_browser_net::Predictor; // http://crbug.com/78451 | 217 friend class chrome_browser_net::Predictor; // http://crbug.com/78451 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 255 |
260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 256 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
261 }; | 257 }; |
262 | 258 |
263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 259 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
264 }; | 260 }; |
265 | 261 |
266 } // namespace base | 262 } // namespace base |
267 | 263 |
268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 264 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |