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

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

Issue 1449133002: TaskGraphRunner refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | cc/BUILD.gn » ('j') | cc/raster/single_thread_task_graph_runner.h » ('J')
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/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 // See comment at top of thread_checker.h 11 // See comment at top of thread_checker.h
12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) 12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON))
13 #define ENABLE_THREAD_RESTRICTIONS 1 13 #define ENABLE_THREAD_RESTRICTIONS 1
14 #else 14 #else
15 #define ENABLE_THREAD_RESTRICTIONS 0 15 #define ENABLE_THREAD_RESTRICTIONS 0
16 #endif 16 #endif
17 17
18 class BrowserProcessImpl; 18 class BrowserProcessImpl;
19 class HistogramSynchronizer; 19 class HistogramSynchronizer;
20 class NativeBackendKWallet; 20 class NativeBackendKWallet;
21 class ScopedAllowWaitForLegacyWebViewApi; 21 class ScopedAllowWaitForLegacyWebViewApi;
22 22
23 namespace cc { 23 namespace cc {
24 class CompletionEvent; 24 class CompletionEvent;
25 class SingleThreadTaskGraphRunner;
25 class TaskGraphRunner; 26 class TaskGraphRunner;
26 } 27 }
27 namespace chromeos { 28 namespace chromeos {
28 class BlockingMethodCaller; 29 class BlockingMethodCaller;
29 namespace system { 30 namespace system {
30 class StatisticsProviderImpl; 31 class StatisticsProviderImpl;
31 } 32 }
32 } 33 }
33 namespace chrome_browser_net { 34 namespace chrome_browser_net {
34 class Predictor; 35 class Predictor;
35 } 36 }
36 namespace content { 37 namespace content {
37 class BrowserGpuChannelHostFactory; 38 class BrowserGpuChannelHostFactory;
38 class BrowserGpuMemoryBufferManager; 39 class BrowserGpuMemoryBufferManager;
39 class BrowserShutdownProfileDumper; 40 class BrowserShutdownProfileDumper;
40 class BrowserTestBase; 41 class BrowserTestBase;
41 class GpuChannelHost; 42 class GpuChannelHost;
42 class NestedMessagePumpAndroid; 43 class NestedMessagePumpAndroid;
43 class ScopedAllowWaitForAndroidLayoutTests; 44 class ScopedAllowWaitForAndroidLayoutTests;
44 class ScopedAllowWaitForDebugURL; 45 class ScopedAllowWaitForDebugURL;
45 class TextInputClientMac; 46 class TextInputClientMac;
47 class RasterWorkerPool;
46 } // namespace content 48 } // namespace content
47 namespace dbus { 49 namespace dbus {
48 class Bus; 50 class Bus;
49 } 51 }
50 namespace disk_cache { 52 namespace disk_cache {
51 class BackendImpl; 53 class BackendImpl;
52 class InFlightIO; 54 class InFlightIO;
53 } 55 }
54 namespace mojo { 56 namespace mojo {
55 namespace common { 57 namespace common {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. 178 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first.
177 // BEGIN ALLOWED USAGE. 179 // BEGIN ALLOWED USAGE.
178 friend class content::BrowserShutdownProfileDumper; 180 friend class content::BrowserShutdownProfileDumper;
179 friend class content::BrowserTestBase; 181 friend class content::BrowserTestBase;
180 friend class content::NestedMessagePumpAndroid; 182 friend class content::NestedMessagePumpAndroid;
181 friend class content::ScopedAllowWaitForAndroidLayoutTests; 183 friend class content::ScopedAllowWaitForAndroidLayoutTests;
182 friend class content::ScopedAllowWaitForDebugURL; 184 friend class content::ScopedAllowWaitForDebugURL;
183 friend class ::HistogramSynchronizer; 185 friend class ::HistogramSynchronizer;
184 friend class ::ScopedAllowWaitForLegacyWebViewApi; 186 friend class ::ScopedAllowWaitForLegacyWebViewApi;
185 friend class cc::CompletionEvent; 187 friend class cc::CompletionEvent;
186 friend class cc::TaskGraphRunner; 188 friend class cc::SingleThreadTaskGraphRunner;
189 friend class content::RasterWorkerPool;
187 friend class mojo::common::WatcherThreadManager; 190 friend class mojo::common::WatcherThreadManager;
188 friend class remoting::AutoThread; 191 friend class remoting::AutoThread;
189 friend class ui::WindowResizeHelperMac; 192 friend class ui::WindowResizeHelperMac;
190 friend class MessagePumpDefault; 193 friend class MessagePumpDefault;
191 friend class SequencedWorkerPool; 194 friend class SequencedWorkerPool;
192 friend class SimpleThread; 195 friend class SimpleThread;
193 friend class Thread; 196 friend class Thread;
194 friend class ThreadTestHelper; 197 friend class ThreadTestHelper;
195 friend class PlatformThread; 198 friend class PlatformThread;
196 friend class android::JavaHandlerThread; 199 friend class android::JavaHandlerThread;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 239
237 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 240 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
238 }; 241 };
239 242
240 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 243 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
241 }; 244 };
242 245
243 } // namespace base 246 } // namespace base
244 247
245 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 248 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/BUILD.gn » ('j') | cc/raster/single_thread_task_graph_runner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698