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

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

Issue 2817923003: aw: Add allow wait for form database (Closed)
Patch Set: Created 3 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 | « android_webview/test/BUILD.gn ('k') | no next file » | 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/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 class BrowserProcessImpl; 12 class BrowserProcessImpl;
13 class HistogramSynchronizer; 13 class HistogramSynchronizer;
14 class NativeBackendKWallet; 14 class NativeBackendKWallet;
15 15
16 namespace android_webview { 16 namespace android_webview {
17 class AwFormDatabaseService;
17 class CookieManager; 18 class CookieManager;
18 } 19 }
19 20
20 namespace cc { 21 namespace cc {
21 class CompletionEvent; 22 class CompletionEvent;
22 class SingleThreadTaskGraphRunner; 23 class SingleThreadTaskGraphRunner;
23 } 24 }
24 namespace chromeos { 25 namespace chromeos {
25 class BlockingMethodCaller; 26 class BlockingMethodCaller;
26 namespace system { 27 namespace system {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 static void AssertIOAllowed() {} 174 static void AssertIOAllowed() {}
174 static bool SetSingletonAllowed(bool allowed) { return true; } 175 static bool SetSingletonAllowed(bool allowed) { return true; }
175 static void AssertSingletonAllowed() {} 176 static void AssertSingletonAllowed() {}
176 static void DisallowWaiting() {} 177 static void DisallowWaiting() {}
177 static void AssertWaitAllowed() {} 178 static void AssertWaitAllowed() {}
178 #endif 179 #endif
179 180
180 private: 181 private:
181 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. 182 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first.
182 // BEGIN ALLOWED USAGE. 183 // BEGIN ALLOWED USAGE.
184 friend class android_webview::AwFormDatabaseService;
183 friend class android_webview::CookieManager; 185 friend class android_webview::CookieManager;
184 friend class content::BrowserShutdownProfileDumper; 186 friend class content::BrowserShutdownProfileDumper;
185 friend class content::BrowserSurfaceViewManager; 187 friend class content::BrowserSurfaceViewManager;
186 friend class content::BrowserTestBase; 188 friend class content::BrowserTestBase;
187 friend class content::NestedMessagePumpAndroid; 189 friend class content::NestedMessagePumpAndroid;
188 friend class content::ScopedAllowWaitForAndroidLayoutTests; 190 friend class content::ScopedAllowWaitForAndroidLayoutTests;
189 friend class content::ScopedAllowWaitForDebugURL; 191 friend class content::ScopedAllowWaitForDebugURL;
190 friend class content::SynchronousCompositor; 192 friend class content::SynchronousCompositor;
191 friend class content::SynchronousCompositorBrowserFilter; 193 friend class content::SynchronousCompositorBrowserFilter;
192 friend class content::SynchronousCompositorHost; 194 friend class content::SynchronousCompositorHost;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 257
256 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 258 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
257 }; 259 };
258 260
259 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 261 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
260 }; 262 };
261 263
262 } // namespace base 264 } // namespace base
263 265
264 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 266 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « android_webview/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698