17 строки
859 B
Diff
17 строки
859 B
Diff
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
|
index 3d9979e895f6..8b085fe8de0d 100644
|
|
--- a/content/public/browser/content_browser_client.h
|
|
+++ b/content/public/browser/content_browser_client.h
|
|
@@ -171,6 +171,11 @@ class CONTENT_EXPORT ContentBrowserClient {
|
|
const scoped_refptr<base::TaskRunner>& task_runner,
|
|
base::OnceClosure task);
|
|
|
|
+ // Electron: Allows intercepting the SiteInstance being created for navigation
|
|
+ virtual void OnCreateSiteInstanceForNavigation(
|
|
+ SiteInstance* new_instance,
|
|
+ RenderFrameHost* render_frame_host) {}
|
|
+
|
|
// Allows the embedder to indicate whether it considers startup to be
|
|
// complete. May be called on any thread. This should be called on a one-off
|
|
// basis; if you need to poll this function constantly, use the above
|