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

Unified Diff: content/shell/browser/shell_content_browser_client.h

Issue 2946113002: Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (Closed)
Patch Set: Use FOR_EACH_TDI_MODE(V) macro. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/shell_content_browser_client.h
diff --git a/content/shell/browser/shell_content_browser_client.h b/content/shell/browser/shell_content_browser_client.h
index effcaffe3aa9b4164fa0f67ac1e040e9d2551a6a..37b1f4c1b13ecd92d78a4e132eea3187f6b66641 100644
--- a/content/shell/browser/shell_content_browser_client.h
+++ b/content/shell/browser/shell_content_browser_client.h
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
+#include <utility>
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
@@ -65,6 +66,10 @@ class ShellContentBrowserClient : public ContentBrowserClient {
SpeechRecognitionManagerDelegate* CreateSpeechRecognitionManagerDelegate()
override;
net::NetLog* GetNetLog() override;
+ bool ShouldIsolateFrameFromMainContent(
+ content::RenderFrameHost* frame,
+ const GURL& dest_url,
+ content::SiteInstance* main_frame_site_instance) override;
bool ShouldSwapProcessesForRedirect(BrowserContext* browser_context,
const GURL& current_url,
const GURL& new_url) override;

Powered by Google App Engine
This is Rietveld 408576698