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

Unified Diff: content/public/browser/navigation_handle.h

Issue 2411693003: Move blocking of top-level navigations to nested URLs with extension origins from non-extension pro… (Closed)
Patch Set: review nits Created 4 years, 2 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/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 8770777171da92bf15cb92d1d4a0117004c22115..4c0694eda5d3d96986c554f976b7aaeaa021ac2c 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -23,6 +23,7 @@ namespace content {
class NavigationData;
class NavigationThrottle;
class RenderFrameHost;
+class SiteInstance;
class WebContents;
// A NavigationHandle tracks information related to a single navigation.
@@ -48,6 +49,11 @@ class CONTENT_EXPORT NavigationHandle {
// virtual URL is prefixed with "view-source:".
virtual const GURL& GetURL() = 0;
+ // Returns the SiteInstance that started the request.
+ // If a frame in SiteInstance A navigates a frame in SiteInstance B to a URL
+ // in SiteInstance C, then this returns B.
+ virtual SiteInstance* GetStartingSiteInstance() = 0;
+
// Whether the navigation is taking place in the main frame or in a subframe.
// This remains constant over the navigation lifetime.
virtual bool IsInMainFrame() = 0;
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | extensions/browser/extension_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698