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

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: 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
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..a4349c3f13c637ce6f96e0df481797b73b70f01c 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -131,6 +131,11 @@ class ChildProcessSecurityPolicy {
// scheme.
virtual void GrantScheme(int child_id, const std::string& scheme) = 0;
+ // Grants the child process the capability to access URLs with both the
+ // provided scheme and host.
Charlie Reis 2015/09/22 17:38:15 Maybe we should be using url::Origins here, rather
paulmeyer 2015/09/22 22:13:57 Done and done.
Charlie Reis 2015/09/23 00:07:15 Please use url::Origins rather than strings (same
paulmeyer 2015/09/23 17:03:54 Sorry, I misunderstood. Now using url::Origin.
+ virtual void GrantSchemeHost(int child_id, const std::string& scheme,
+ const std::string& host) = 0;
Charlie Reis 2015/09/22 17:38:15 Same style nit.
paulmeyer 2015/09/22 22:13:57 Done.
+
// Returns true if read access has been granted to |filesystem_id|.
virtual bool CanReadFileSystem(int child_id,
const std::string& filesystem_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698