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

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

Issue 17395002: content_shell: Use a ThreadRestrictions::ScopedAllowWait for layout tests on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/shell/webkit_test_controller.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/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 namespace chrome_browser_net { 40 namespace chrome_browser_net {
41 class Predictor; 41 class Predictor;
42 } 42 }
43 namespace content { 43 namespace content {
44 class BrowserGpuChannelHostFactory; 44 class BrowserGpuChannelHostFactory;
45 class BrowserTestBase; 45 class BrowserTestBase;
46 class GLHelper; 46 class GLHelper;
47 class GpuChannelHost; 47 class GpuChannelHost;
48 class RenderWidgetHelper; 48 class RenderWidgetHelper;
49 class ScopedAllowWaitForAndroidLayoutTests;
49 class TextInputClientMac; 50 class TextInputClientMac;
50 } 51 }
51 namespace dbus { 52 namespace dbus {
52 class Bus; 53 class Bus;
53 } 54 }
54 namespace disk_cache { 55 namespace disk_cache {
55 class BackendImpl; 56 class BackendImpl;
56 class InFlightIO; 57 class InFlightIO;
57 } 58 }
58 namespace media { 59 namespace media {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 static void AssertSingletonAllowed() {} 166 static void AssertSingletonAllowed() {}
166 static void DisallowWaiting() {} 167 static void DisallowWaiting() {}
167 static void AssertWaitAllowed() {} 168 static void AssertWaitAllowed() {}
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::BrowserTestBase; 174 friend class content::BrowserTestBase;
174 friend class content::RenderWidgetHelper; 175 friend class content::RenderWidgetHelper;
176 friend class content::ScopedAllowWaitForAndroidLayoutTests;
175 friend class ::HistogramSynchronizer; 177 friend class ::HistogramSynchronizer;
176 friend class ::ScopedAllowWaitForLegacyWebViewApi; 178 friend class ::ScopedAllowWaitForLegacyWebViewApi;
177 friend class ::TestingAutomationProvider; 179 friend class ::TestingAutomationProvider;
178 friend class cc::CompletionEvent; 180 friend class cc::CompletionEvent;
179 friend class remoting::AutoThread; 181 friend class remoting::AutoThread;
180 friend class MessagePumpDefault; 182 friend class MessagePumpDefault;
181 friend class SequencedWorkerPool; 183 friend class SequencedWorkerPool;
182 friend class SimpleThread; 184 friend class SimpleThread;
183 friend class Thread; 185 friend class Thread;
184 friend class ThreadTestHelper; 186 friend class ThreadTestHelper;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 233
232 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 234 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
233 }; 235 };
234 236
235 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 237 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
236 }; 238 };
237 239
238 } // namespace base 240 } // namespace base
239 241
240 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 242 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/webkit_test_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698