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

Unified Diff: content/browser/child_process_security_policy_impl.h

Issue 11416121: Prevent cross-site pages when --site-per-process is passed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years 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/browser/child_process_security_policy_impl.h
diff --git a/content/browser/child_process_security_policy_impl.h b/content/browser/child_process_security_policy_impl.h
index 8a3d410e5294d75a2452fffc32ca2200e91f26df..93d2b116172e3573d748509d048fc3541b485ed2 100644
--- a/content/browser/child_process_security_policy_impl.h
+++ b/content/browser/child_process_security_policy_impl.h
@@ -15,6 +15,7 @@
#include "base/memory/singleton.h"
#include "base/synchronization/lock.h"
#include "content/public/browser/child_process_security_policy.h"
+#include "webkit/glue/resource_type.h"
class FilePath;
class GURL;
@@ -110,6 +111,13 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
// request the URL.
bool CanRequestURL(int child_id, const GURL& url);
+ // Returns true if the process is permitted to load pages from
+ // the given origin in main frames or subframes.
+ // Only might return false if --site-per-process flag is used.
+ bool CanLoadPage(int child_id,
+ const GURL& url,
+ ResourceType::Type resource_type);
+
// Before servicing a child process's request to enumerate a directory
// the browser should call this method to check for the capability.
bool CanReadDirectory(int child_id, const FilePath& directory);
« no previous file with comments | « chrome/browser/chrome_content_browser_client_browsertest.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698