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

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

Issue 1063753005: Allow Waitable event to be used to intentionally hang the UI thread for debugging purposes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | content/browser/frame_host/debug_urls.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/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 namespace content { 36 namespace content {
37 class BrowserGpuChannelHostFactory; 37 class BrowserGpuChannelHostFactory;
38 class BrowserGpuMemoryBufferManager; 38 class BrowserGpuMemoryBufferManager;
39 class BrowserShutdownProfileDumper; 39 class BrowserShutdownProfileDumper;
40 class BrowserTestBase; 40 class BrowserTestBase;
41 class GpuChannelHost; 41 class GpuChannelHost;
42 class NestedMessagePumpAndroid; 42 class NestedMessagePumpAndroid;
43 class RenderWidgetResizeHelper; 43 class RenderWidgetResizeHelper;
44 class ScopedAllowWaitForAndroidLayoutTests; 44 class ScopedAllowWaitForAndroidLayoutTests;
45 class ScopedAllowWaitForDebugURL;
45 class TextInputClientMac; 46 class TextInputClientMac;
46 } // namespace content 47 } // namespace content
47 namespace dbus { 48 namespace dbus {
48 class Bus; 49 class Bus;
49 } 50 }
50 namespace disk_cache { 51 namespace disk_cache {
51 class BackendImpl; 52 class BackendImpl;
52 class InFlightIO; 53 class InFlightIO;
53 } 54 }
54 namespace mojo { 55 namespace mojo {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 #endif 169 #endif
169 170
170 private: 171 private:
171 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. 172 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first.
172 // BEGIN ALLOWED USAGE. 173 // BEGIN ALLOWED USAGE.
173 friend class content::BrowserShutdownProfileDumper; 174 friend class content::BrowserShutdownProfileDumper;
174 friend class content::BrowserTestBase; 175 friend class content::BrowserTestBase;
175 friend class content::NestedMessagePumpAndroid; 176 friend class content::NestedMessagePumpAndroid;
176 friend class content::RenderWidgetResizeHelper; 177 friend class content::RenderWidgetResizeHelper;
177 friend class content::ScopedAllowWaitForAndroidLayoutTests; 178 friend class content::ScopedAllowWaitForAndroidLayoutTests;
179 friend class content::ScopedAllowWaitForDebugURL;
178 friend class ::HistogramSynchronizer; 180 friend class ::HistogramSynchronizer;
179 friend class ::ScopedAllowWaitForLegacyWebViewApi; 181 friend class ::ScopedAllowWaitForLegacyWebViewApi;
180 friend class cc::CompletionEvent; 182 friend class cc::CompletionEvent;
181 friend class cc::TaskGraphRunner; 183 friend class cc::TaskGraphRunner;
182 friend class mojo::common::WatcherThreadManager; 184 friend class mojo::common::WatcherThreadManager;
183 friend class remoting::AutoThread; 185 friend class remoting::AutoThread;
184 friend class MessagePumpDefault; 186 friend class MessagePumpDefault;
185 friend class SequencedWorkerPool; 187 friend class SequencedWorkerPool;
186 friend class SimpleThread; 188 friend class SimpleThread;
187 friend class Thread; 189 friend class Thread;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 231
230 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 232 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
231 }; 233 };
232 234
233 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 235 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
234 }; 236 };
235 237
236 } // namespace base 238 } // namespace base
237 239
238 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 240 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/debug_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698