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

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

Issue 1362433002: Fix for "chrome://" links in PDFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix. Created 5 years, 3 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
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/child_process_security_policy.h
diff --git a/content/public/browser/child_process_security_policy.h b/content/public/browser/child_process_security_policy.h
index 06f3035558dd18bc6a11b51995e42be6843110f3..c1e6bb541b472a176941f54d1ac3db7ed82ddae3 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "content/common/content_export.h"
#include "url/gurl.h"
+#include "url/origin.h"
namespace base {
class FilePath;
@@ -127,6 +128,10 @@ class ChildProcessSecurityPolicy {
virtual void GrantDeleteFromFileSystem(int child_id,
const std::string& filesystem_id) = 0;
+ // Grants the child process the capability to access URLs with the provided
+ // origin.
+ virtual void GrantOrigin(int child_id, const url::Origin& origin) = 0;
+
// Grants the child process the capability to access URLs of the provided
// scheme.
virtual void GrantScheme(int child_id, const std::string& scheme) = 0;
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698