Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: base/threading/thread_restrictions.h

Issue 2791933004: Revert of RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 namespace system { 23 namespace system {
24 class StatisticsProviderImpl; 24 class StatisticsProviderImpl;
25 } 25 }
26 } 26 }
27 namespace chrome_browser_net { 27 namespace chrome_browser_net {
28 class Predictor; 28 class Predictor;
29 } 29 }
30 namespace content { 30 namespace content {
31 class BrowserGpuChannelHostFactory; 31 class BrowserGpuChannelHostFactory;
32 class BrowserGpuMemoryBufferManager; 32 class BrowserGpuMemoryBufferManager;
33 class BrowserMainLoop;
34 class BrowserShutdownProfileDumper; 33 class BrowserShutdownProfileDumper;
35 class BrowserSurfaceViewManager; 34 class BrowserSurfaceViewManager;
36 class BrowserTestBase; 35 class BrowserTestBase;
37 class CategorizedWorkerPool;
38 class NestedMessagePumpAndroid; 36 class NestedMessagePumpAndroid;
39 class ScopedAllowWaitForAndroidLayoutTests; 37 class ScopedAllowWaitForAndroidLayoutTests;
40 class ScopedAllowWaitForDebugURL; 38 class ScopedAllowWaitForDebugURL;
41 class SoftwareOutputDeviceMus; 39 class SoftwareOutputDeviceMus;
42 class TextInputClientMac; 40 class TextInputClientMac;
41 class CategorizedWorkerPool;
43 } // namespace content 42 } // namespace content
44 namespace dbus { 43 namespace dbus {
45 class Bus; 44 class Bus;
46 } 45 }
47 namespace disk_cache { 46 namespace disk_cache {
48 class BackendImpl; 47 class BackendImpl;
49 class InFlightIO; 48 class InFlightIO;
50 } 49 }
51 namespace gpu { 50 namespace gpu {
52 class GpuChannelHost; 51 class GpuChannelHost;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 static void AssertIOAllowed() {} 167 static void AssertIOAllowed() {}
169 static bool SetSingletonAllowed(bool allowed) { return true; } 168 static bool SetSingletonAllowed(bool allowed) { return true; }
170 static void AssertSingletonAllowed() {} 169 static void AssertSingletonAllowed() {}
171 static void DisallowWaiting() {} 170 static void DisallowWaiting() {}
172 static void AssertWaitAllowed() {} 171 static void AssertWaitAllowed() {}
173 #endif 172 #endif
174 173
175 private: 174 private:
176 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. 175 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first.
177 // BEGIN ALLOWED USAGE. 176 // BEGIN ALLOWED USAGE.
178 friend class content::BrowserMainLoop;
179 friend class content::BrowserShutdownProfileDumper; 177 friend class content::BrowserShutdownProfileDumper;
180 friend class content::BrowserSurfaceViewManager; 178 friend class content::BrowserSurfaceViewManager;
181 friend class content::BrowserTestBase; 179 friend class content::BrowserTestBase;
182 friend class content::NestedMessagePumpAndroid; 180 friend class content::NestedMessagePumpAndroid;
183 friend class content::ScopedAllowWaitForAndroidLayoutTests; 181 friend class content::ScopedAllowWaitForAndroidLayoutTests;
184 friend class content::ScopedAllowWaitForDebugURL; 182 friend class content::ScopedAllowWaitForDebugURL;
185 friend class ::HistogramSynchronizer; 183 friend class ::HistogramSynchronizer;
186 friend class internal::TaskTracker; 184 friend class internal::TaskTracker;
187 friend class ::ScopedAllowWaitForLegacyWebViewApi; 185 friend class ::ScopedAllowWaitForLegacyWebViewApi;
188 friend class cc::CompletionEvent; 186 friend class cc::CompletionEvent;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 246
249 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 247 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
250 }; 248 };
251 249
252 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 250 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
253 }; 251 };
254 252
255 } // namespace base 253 } // namespace base
256 254
257 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 255 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698