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

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

Issue 2047703003: Revert of Implement ui::ClipboardMus. (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/clipboard/BUILD.gn » ('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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 namespace remoting { 76 namespace remoting {
77 class AutoThread; 77 class AutoThread;
78 } 78 }
79 79
80 namespace ui { 80 namespace ui {
81 class WindowResizeHelperMac; 81 class WindowResizeHelperMac;
82 } 82 }
83 83
84 namespace views { 84 namespace views {
85 class ClipboardMus;
86 class ScreenMus; 85 class ScreenMus;
87 } 86 }
88 87
89 namespace base { 88 namespace base {
90 89
91 namespace android { 90 namespace android {
92 class JavaHandlerThread; 91 class JavaHandlerThread;
93 } 92 }
94 93
95 class SequencedWorkerPool; 94 class SequencedWorkerPool;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 friend class disk_cache::BackendImpl; // http://crbug.com/74623 228 friend class disk_cache::BackendImpl; // http://crbug.com/74623
230 friend class disk_cache::InFlightIO; // http://crbug.com/74623 229 friend class disk_cache::InFlightIO; // http://crbug.com/74623
231 friend class gpu::GpuChannelHost; // http://crbug.com/125264 230 friend class gpu::GpuChannelHost; // http://crbug.com/125264
232 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097 231 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097
233 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097 232 friend class net::NetworkChangeNotifierMac; // http://crbug.com/125097
234 friend class ::BrowserProcessImpl; // http://crbug.com/125207 233 friend class ::BrowserProcessImpl; // http://crbug.com/125207
235 friend class ::NativeBackendKWallet; // http://crbug.com/125331 234 friend class ::NativeBackendKWallet; // http://crbug.com/125331
236 #if !defined(OFFICIAL_BUILD) 235 #if !defined(OFFICIAL_BUILD)
237 friend class content::SoftwareOutputDeviceMus; // Interim non-production code 236 friend class content::SoftwareOutputDeviceMus; // Interim non-production code
238 #endif 237 #endif
239 // In the non-mus case, we called blocking OS functions in the ui::Clipboard
240 // implementation which weren't caught by threading restrictions. Our
241 // blocking calls to mus, however, are.
242 friend class views::ClipboardMus;
243 friend class views::ScreenMus; 238 friend class views::ScreenMus;
244 // END USAGE THAT NEEDS TO BE FIXED. 239 // END USAGE THAT NEEDS TO BE FIXED.
245 240
246 #if ENABLE_THREAD_RESTRICTIONS 241 #if ENABLE_THREAD_RESTRICTIONS
247 static bool SetWaitAllowed(bool allowed); 242 static bool SetWaitAllowed(bool allowed);
248 #else 243 #else
249 static bool SetWaitAllowed(bool allowed) { return true; } 244 static bool SetWaitAllowed(bool allowed) { return true; }
250 #endif 245 #endif
251 246
252 // 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
264 259
265 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
266 }; 261 };
267 262
268 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
269 }; 264 };
270 265
271 } // namespace base 266 } // namespace base
272 267
273 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/clipboard/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698