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

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

Issue 1615023004: Start of display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash and add back getting constants Created 4 years, 11 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 | « ash/display/screen_ash.cc ('k') | components/mus/mus_app.h » ('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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 namespace remoting { 75 namespace remoting {
76 class AutoThread; 76 class AutoThread;
77 } 77 }
78 78
79 namespace ui { 79 namespace ui {
80 class WindowResizeHelperMac; 80 class WindowResizeHelperMac;
81 } 81 }
82 82
83 namespace views { 83 namespace views {
84 class ScreenMus;
84 class WindowManagerConnection; 85 class WindowManagerConnection;
85 } 86 }
86 87
87 namespace base { 88 namespace base {
88 89
89 namespace android { 90 namespace android {
90 class JavaHandlerThread; 91 class JavaHandlerThread;
91 } 92 }
92 93
93 class SequencedWorkerPool; 94 class SequencedWorkerPool;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 friend class dbus::Bus; // http://crbug.com/125222 227 friend class dbus::Bus; // http://crbug.com/125222
227 friend class disk_cache::BackendImpl; // http://crbug.com/74623 228 friend class disk_cache::BackendImpl; // http://crbug.com/74623
228 friend class disk_cache::InFlightIO; // http://crbug.com/74623 229 friend class disk_cache::InFlightIO; // http://crbug.com/74623
229 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 230 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097
230 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 231 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097
231 friend class ::BrowserProcessImpl; // http://crbug.com/125207 232 friend class ::BrowserProcessImpl; // http://crbug.com/125207
232 friend class ::NativeBackendKWallet; // http://crbug.com/125331 233 friend class ::NativeBackendKWallet; // http://crbug.com/125331
233 #if !defined(OFFICIAL_BUILD) 234 #if !defined(OFFICIAL_BUILD)
234 friend class content::SoftwareOutputDeviceMus; // Interim non-production code 235 friend class content::SoftwareOutputDeviceMus; // Interim non-production code
235 #endif 236 #endif
237 friend class views::ScreenMus;
236 friend class views::WindowManagerConnection; 238 friend class views::WindowManagerConnection;
237 // END USAGE THAT NEEDS TO BE FIXED. 239 // END USAGE THAT NEEDS TO BE FIXED.
238 240
239 #if ENABLE_THREAD_RESTRICTIONS 241 #if ENABLE_THREAD_RESTRICTIONS
240 static bool SetWaitAllowed(bool allowed); 242 static bool SetWaitAllowed(bool allowed);
241 #else 243 #else
242 static bool SetWaitAllowed(bool allowed) { return true; } 244 static bool SetWaitAllowed(bool allowed) { return true; }
243 #endif 245 #endif
244 246
245 // Constructing a ScopedAllowWait temporarily allows waiting on the current 247 // Constructing a ScopedAllowWait temporarily allows waiting on the current
(...skipping 11 matching lines...) Expand all
257 259
258 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
259 }; 261 };
260 262
261 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
262 }; 264 };
263 265
264 } // namespace base 266 } // namespace base
265 267
266 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « ash/display/screen_ash.cc ('k') | components/mus/mus_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698