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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1270663002: Validate the Origin HTTP header in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 5 years, 4 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 58d255514e25a13d91a188d267741fd5c76f6c82..e723e33b534c0de4acea9fe2b723a883e79b7ffa 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -993,6 +993,18 @@ bool ChromeContentBrowserClient::CanCommitURL(
#endif
}
+bool ChromeContentBrowserClient::IsIllegalOrigin(
+ content::ResourceContext* resource_context,
+ int child_process_id,
+ const GURL& origin) {
+#if defined(ENABLE_EXTENSIONS)
+ return ChromeContentBrowserClientExtensionsPart::IsIllegalOrigin(
+ resource_context, child_process_id, origin);
+#else
+ return false;
+#endif
+}
+
bool ChromeContentBrowserClient::ShouldAllowOpenURL(
content::SiteInstance* site_instance, const GURL& url) {
GURL from_url = site_instance->GetSiteURL();

Powered by Google App Engine
This is Rietveld 408576698