Chromium Code Reviews| 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..1af6ba4447536045d001292a05467de741b58a9b 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,12 @@ 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, |
|
nasko
2012/12/06 17:20:15
Style: Each param should go on a new line.
irobert
2012/12/06 19:10:40
Done.
|
| + 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); |