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

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

Issue 2084993002: Mojo: add support for disallowing sync calls for a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | components/mus/common/gpu_service.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/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class BackendImpl; 53 class BackendImpl;
54 class InFlightIO; 54 class InFlightIO;
55 } 55 }
56 namespace gpu { 56 namespace gpu {
57 class GpuChannelHost; 57 class GpuChannelHost;
58 } 58 }
59 namespace mojo { 59 namespace mojo {
60 namespace common { 60 namespace common {
61 class MessagePumpMojo; 61 class MessagePumpMojo;
62 } 62 }
63 class SyncCallRestrictions;
63 } 64 }
64 namespace mus { 65 namespace mus {
65 class CommandBufferClientImpl; 66 class CommandBufferClientImpl;
66 class CommandBufferLocal; 67 class CommandBufferLocal;
67 class GpuService;
68 class GpuState; 68 class GpuState;
69 } 69 }
70 namespace net { 70 namespace net {
71 class NetworkChangeNotifierMac; 71 class NetworkChangeNotifierMac;
72 namespace internal { 72 namespace internal {
73 class AddressTrackerLinux; 73 class AddressTrackerLinux;
74 } 74 }
75 } 75 }
76 76
77 namespace remoting { 77 namespace remoting {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 friend class remoting::AutoThread; 205 friend class remoting::AutoThread;
206 friend class ui::WindowResizeHelperMac; 206 friend class ui::WindowResizeHelperMac;
207 friend class MessagePumpDefault; 207 friend class MessagePumpDefault;
208 friend class SequencedWorkerPool; 208 friend class SequencedWorkerPool;
209 friend class SimpleThread; 209 friend class SimpleThread;
210 friend class Thread; 210 friend class Thread;
211 friend class ThreadTestHelper; 211 friend class ThreadTestHelper;
212 friend class PlatformThread; 212 friend class PlatformThread;
213 friend class android::JavaHandlerThread; 213 friend class android::JavaHandlerThread;
214 friend class mojo::common::MessagePumpMojo; 214 friend class mojo::common::MessagePumpMojo;
215 friend class mojo::SyncCallRestrictions;
215 friend class mus::CommandBufferClientImpl; 216 friend class mus::CommandBufferClientImpl;
216 friend class mus::CommandBufferLocal; 217 friend class mus::CommandBufferLocal;
217 friend class mus::GpuService; // http://crbug.com/620058
218 friend class mus::GpuState; 218 friend class mus::GpuState;
219 219
220 // END ALLOWED USAGE. 220 // END ALLOWED USAGE.
221 // BEGIN USAGE THAT NEEDS TO BE FIXED. 221 // BEGIN USAGE THAT NEEDS TO BE FIXED.
222 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 222 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360
223 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/ 125385 223 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/ 125385
224 friend class chrome_browser_net::Predictor; // http://crbug.com/78451 224 friend class chrome_browser_net::Predictor; // http://crbug.com/78451
225 friend class 225 friend class
226 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248 226 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248
227 friend class 227 friend class
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 267 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
268 }; 268 };
269 269
270 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 270 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
271 }; 271 };
272 272
273 } // namespace base 273 } // namespace base
274 274
275 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 275 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/common/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698