зеркало из https://github.com/electron/electron.git
5825636: [Extensions] Create WebContentsObservers with ExtensionsBrowserClient
https://chromium-review.googlesource.com/c/chromium/src/+/5825636
This commit is contained in:
Родитель
50d4a71923
Коммит
f2c3d09ccd
|
@ -373,6 +373,12 @@ void ElectronExtensionsBrowserClient::SetAPIClientForTest(
|
||||||
api_client_.reset(api_client);
|
api_client_.reset(api_client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ElectronExtensionsBrowserClient::CreateExtensionWebContentsObserver(
|
||||||
|
content::WebContents* web_contents) {
|
||||||
|
extensions::ElectronExtensionWebContentsObserver::CreateForWebContents(
|
||||||
|
web_contents);
|
||||||
|
}
|
||||||
|
|
||||||
extensions::ExtensionWebContentsObserver*
|
extensions::ExtensionWebContentsObserver*
|
||||||
ElectronExtensionsBrowserClient::GetExtensionWebContentsObserver(
|
ElectronExtensionsBrowserClient::GetExtensionWebContentsObserver(
|
||||||
content::WebContents* web_contents) {
|
content::WebContents* web_contents) {
|
||||||
|
|
|
@ -137,6 +137,8 @@ class ElectronExtensionsBrowserClient
|
||||||
extensions::ExtensionCache* GetExtensionCache() override;
|
extensions::ExtensionCache* GetExtensionCache() override;
|
||||||
bool IsBackgroundUpdateAllowed() override;
|
bool IsBackgroundUpdateAllowed() override;
|
||||||
bool IsMinBrowserVersionSupported(const std::string& min_version) override;
|
bool IsMinBrowserVersionSupported(const std::string& min_version) override;
|
||||||
|
void CreateExtensionWebContentsObserver(
|
||||||
|
content::WebContents* web_contents) override;
|
||||||
extensions::ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
|
extensions::ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
|
||||||
content::WebContents* web_contents) override;
|
content::WebContents* web_contents) override;
|
||||||
extensions::KioskDelegate* GetKioskDelegate() override;
|
extensions::KioskDelegate* GetKioskDelegate() override;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче