12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
- From: deepak1556 <[email protected]>
- Date: Tue, 15 Nov 2022 21:45:28 +0900
- Subject: chore: introduce blocking api for //electron
- This patch comes after Chromium removed the ScopedAllowIO API in favor
- of explicitly adding ScopedAllowBlocking calls as friends.
- diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h
- index f3295a465997b04e2345b31ea1bad42f66ab7400..9d77fa98b4247092c1c1df920f6a6285c22d2708 100644
- --- a/base/threading/thread_restrictions.h
- +++ b/base/threading/thread_restrictions.h
- @@ -129,6 +129,7 @@ class FirefoxProfileLock;
- class KeyStorageLinux;
- class NativeBackendKWallet;
- class NativeDesktopMediaList;
- +class ProcessSingleton;
- class Profile;
- class ProfileImpl;
- class StartupTabProviderImpl;
- @@ -261,6 +262,9 @@ class BackendImpl;
- class InFlightIO;
- bool CleanupDirectorySync(const base::FilePath&);
- } // namespace disk_cache
- +namespace electron {
- +class ScopedAllowBlockingForElectron;
- +} // namespace electron
- namespace enterprise_connectors {
- class LinuxKeyRotationCommand;
- } // namespace enterprise_connectors
- @@ -543,6 +547,7 @@ class BASE_EXPORT ScopedAllowBlocking {
- friend class ::DesktopNotificationBalloon;
- friend class ::FirefoxProfileLock;
- friend class ::GaiaConfig;
- + friend class ::ProcessSingleton;
- friend class ::ProfileImpl;
- friend class ::ScopedAllowBlockingForProfile;
- friend class ::StartupTabProviderImpl;
- @@ -583,6 +588,7 @@ class BASE_EXPORT ScopedAllowBlocking {
- friend class crosapi::LacrosThreadTypeDelegate;
- friend class crypto::ScopedAllowBlockingForNSS; // http://crbug.com/59847
- friend class drive::FakeDriveService;
- + friend class electron::ScopedAllowBlockingForElectron;
- friend class extensions::InstalledLoader;
- friend class extensions::UnpackedInstaller;
- friend class font_service::internal::MappedFontFile;
|