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 11 matching lines...) Expand all Loading... |
22 class MetricsService; | 22 class MetricsService; |
23 class NativeBackendKWallet; | 23 class NativeBackendKWallet; |
24 class ScopedAllowWaitForLegacyWebViewApi; | 24 class ScopedAllowWaitForLegacyWebViewApi; |
25 class TestingAutomationProvider; | 25 class TestingAutomationProvider; |
26 class TextInputClientMac; | 26 class TextInputClientMac; |
27 | 27 |
28 namespace browser_sync { | 28 namespace browser_sync { |
29 class NonFrontendDataTypeController; | 29 class NonFrontendDataTypeController; |
30 class UIModelWorker; | 30 class UIModelWorker; |
31 } | 31 } |
| 32 namespace cc { |
| 33 class CCCompletionEvent; |
| 34 } |
32 namespace chromeos { | 35 namespace chromeos { |
33 class AudioMixerAlsa; | 36 class AudioMixerAlsa; |
34 class BlockingMethodCaller; | 37 class BlockingMethodCaller; |
35 namespace system { | 38 namespace system { |
36 class StatisticsProviderImpl; | 39 class StatisticsProviderImpl; |
37 } | 40 } |
38 } | 41 } |
39 namespace chrome_browser_net { | 42 namespace chrome_browser_net { |
40 class Predictor; | 43 class Predictor; |
41 } | 44 } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 static void AssertWaitAllowed() {} | 164 static void AssertWaitAllowed() {} |
162 #endif | 165 #endif |
163 | 166 |
164 private: | 167 private: |
165 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 168 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
166 // BEGIN ALLOWED USAGE. | 169 // BEGIN ALLOWED USAGE. |
167 friend class content::RenderWidgetHelper; | 170 friend class content::RenderWidgetHelper; |
168 friend class ::HistogramSynchronizer; | 171 friend class ::HistogramSynchronizer; |
169 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 172 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
170 friend class ::TestingAutomationProvider; | 173 friend class ::TestingAutomationProvider; |
| 174 friend class cc::CCCompletionEvent; |
171 friend class remoting::AutoThread; | 175 friend class remoting::AutoThread; |
172 friend class SequencedWorkerPool; | 176 friend class SequencedWorkerPool; |
173 friend class SimpleThread; | 177 friend class SimpleThread; |
174 friend class Thread; | 178 friend class Thread; |
175 friend class ThreadTestHelper; | 179 friend class ThreadTestHelper; |
176 | 180 |
177 // END ALLOWED USAGE. | 181 // END ALLOWED USAGE. |
178 // BEGIN USAGE THAT NEEDS TO BE FIXED. | 182 // BEGIN USAGE THAT NEEDS TO BE FIXED. |
179 friend class ::chromeos::AudioMixerAlsa; // http://crbug.com/125206 | 183 friend class ::chromeos::AudioMixerAlsa; // http://crbug.com/125206 |
180 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 | 184 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 225 |
222 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 226 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
223 }; | 227 }; |
224 | 228 |
225 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 229 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
226 }; | 230 }; |
227 | 231 |
228 } // namespace base | 232 } // namespace base |
229 | 233 |
230 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 234 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |