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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 // compiled out. | 161 // compiled out. |
162 static bool SetIOAllowed(bool allowed) { return true; } | 162 static bool SetIOAllowed(bool allowed) { return true; } |
163 static void AssertIOAllowed() {} | 163 static void AssertIOAllowed() {} |
164 static bool SetSingletonAllowed(bool allowed) { return true; } | 164 static bool SetSingletonAllowed(bool allowed) { return true; } |
165 static void AssertSingletonAllowed() {} | 165 static void AssertSingletonAllowed() {} |
166 static void DisallowWaiting() {} | 166 static void DisallowWaiting() {} |
167 static void AssertWaitAllowed() {} | 167 static void AssertWaitAllowed() {} |
168 #endif | 168 #endif |
169 | 169 |
170 private: | 170 private: |
171 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. | 171 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. |
jar (doing other things)
2013/05/17 22:51:48
I think this is fine.... but talk to jam or brettw
epenner
2013/05/17 23:46:35
Okay I'll add them together with OWNERS.
| |
172 // BEGIN ALLOWED USAGE. | 172 // BEGIN ALLOWED USAGE. |
173 friend class content::BrowserTestBase; | 173 friend class content::BrowserTestBase; |
174 friend class content::RenderWidgetHelper; | 174 friend class content::RenderWidgetHelper; |
175 friend class ::HistogramSynchronizer; | 175 friend class ::HistogramSynchronizer; |
176 friend class ::ScopedAllowWaitForLegacyWebViewApi; | 176 friend class ::ScopedAllowWaitForLegacyWebViewApi; |
177 friend class ::TestingAutomationProvider; | 177 friend class ::TestingAutomationProvider; |
178 friend class cc::CompletionEvent; | 178 friend class cc::CompletionEvent; |
179 friend class remoting::AutoThread; | 179 friend class remoting::AutoThread; |
180 friend class MessagePumpDefault; | 180 friend class MessagePumpDefault; |
181 friend class SequencedWorkerPool; | 181 friend class SequencedWorkerPool; |
182 friend class SimpleThread; | 182 friend class SimpleThread; |
183 friend class Thread; | 183 friend class Thread; |
184 friend class ThreadTestHelper; | 184 friend class ThreadTestHelper; |
185 friend class PlatformThread; | |
185 | 186 |
186 // END ALLOWED USAGE. | 187 // END ALLOWED USAGE. |
187 // BEGIN USAGE THAT NEEDS TO BE FIXED. | 188 // BEGIN USAGE THAT NEEDS TO BE FIXED. |
188 friend class ::chromeos::AudioMixerAlsa; // http://crbug.com/125206 | 189 friend class ::chromeos::AudioMixerAlsa; // http://crbug.com/125206 |
189 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 | 190 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 |
190 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/ 125385 | 191 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/ 125385 |
191 friend class browser_sync::NonFrontendDataTypeController; // http://crbug.com /19757 | 192 friend class browser_sync::NonFrontendDataTypeController; // http://crbug.com /19757 |
192 friend class browser_sync::UIModelWorker; // http://crbug.com/19757 | 193 friend class browser_sync::UIModelWorker; // http://crbug.com/19757 |
193 friend class chrome_browser_net::Predictor; // http://crbug.com/78451 | 194 friend class chrome_browser_net::Predictor; // http://crbug.com/78451 |
194 friend class | 195 friend class |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 | 231 |
231 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); | 232 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); |
232 }; | 233 }; |
233 | 234 |
234 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); | 235 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); |
235 }; | 236 }; |
236 | 237 |
237 } // namespace base | 238 } // namespace base |
238 | 239 |
239 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ | 240 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ |
OLD | NEW |