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

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

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't crash on empty roots. Created 4 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 class GpuChannelHost; 59 class GpuChannelHost;
60 } 60 }
61 namespace mojo { 61 namespace mojo {
62 namespace common { 62 namespace common {
63 class MessagePumpMojo; 63 class MessagePumpMojo;
64 } 64 }
65 } 65 }
66 namespace mus { 66 namespace mus {
67 class CommandBufferLocal; 67 class CommandBufferLocal;
68 class GpuState; 68 class GpuState;
69 class WindowTreeClientImpl;
69 } 70 }
70 namespace net { 71 namespace net {
71 class NetworkChangeNotifierMac; 72 class NetworkChangeNotifierMac;
72 namespace internal { 73 namespace internal {
73 class AddressTrackerLinux; 74 class AddressTrackerLinux;
74 } 75 }
75 } 76 }
76 77
77 namespace remoting { 78 namespace remoting {
78 class AutoThread; 79 class AutoThread;
79 } 80 }
80 81
81 namespace ui { 82 namespace ui {
82 class WindowResizeHelperMac; 83 class WindowResizeHelperMac;
83 } 84 }
84 85
85 namespace views {
86 class ScreenMus;
87 }
88
89 namespace base { 86 namespace base {
90 87
91 namespace android { 88 namespace android {
92 class JavaHandlerThread; 89 class JavaHandlerThread;
93 } 90 }
94 91
95 class SequencedWorkerPool; 92 class SequencedWorkerPool;
96 class SimpleThread; 93 class SimpleThread;
97 class Thread; 94 class Thread;
98 class ThreadTestHelper; 95 class ThreadTestHelper;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 friend class disk_cache::BackendImpl; // http://crbug.com/74623 225 friend class disk_cache::BackendImpl; // http://crbug.com/74623
229 friend class disk_cache::InFlightIO; // http://crbug.com/74623 226 friend class disk_cache::InFlightIO; // http://crbug.com/74623
230 friend class gpu::GpuChannelHost; // http://crbug.com/125264 227 friend class gpu::GpuChannelHost; // http://crbug.com/125264
231 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 228 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097
232 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 229 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097
233 friend class ::BrowserProcessImpl; // http://crbug.com/125207 230 friend class ::BrowserProcessImpl; // http://crbug.com/125207
234 friend class ::NativeBackendKWallet; // http://crbug.com/125331 231 friend class ::NativeBackendKWallet; // http://crbug.com/125331
235 #if !defined(OFFICIAL_BUILD) 232 #if !defined(OFFICIAL_BUILD)
236 friend class content::SoftwareOutputDeviceMus; // Interim non-production code 233 friend class content::SoftwareOutputDeviceMus; // Interim non-production code
237 #endif 234 #endif
238 friend class views::ScreenMus; 235 friend class mus::WindowTreeClientImpl;
239 // END USAGE THAT NEEDS TO BE FIXED. 236 // END USAGE THAT NEEDS TO BE FIXED.
240 237
241 #if ENABLE_THREAD_RESTRICTIONS 238 #if ENABLE_THREAD_RESTRICTIONS
242 static bool SetWaitAllowed(bool allowed); 239 static bool SetWaitAllowed(bool allowed);
243 #else 240 #else
244 static bool SetWaitAllowed(bool allowed) { return true; } 241 static bool SetWaitAllowed(bool allowed) { return true; }
245 #endif 242 #endif
246 243
247 // Constructing a ScopedAllowWait temporarily allows waiting on the current 244 // Constructing a ScopedAllowWait temporarily allows waiting on the current
248 // thread. Doing this is almost always incorrect, which is why we limit who 245 // thread. Doing this is almost always incorrect, which is why we limit who
(...skipping 10 matching lines...) Expand all
259 256
260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 257 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
261 }; 258 };
262 259
263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 260 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
264 }; 261 };
265 262
266 } // namespace base 263 } // namespace base
267 264
268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 265 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/public/cpp/lib/window_tree_client_impl.h » ('j') | components/mus/ws/window_tree.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698