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

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

Issue 1212163007: Kill renderers for bad password forms in --site-per-process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/site_instance_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('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 b2a343f05b142ecd67c37bf9627f989428c05319..06f3035558dd18bc6a11b51995e42be6843110f3 100644
--- a/content/public/browser/child_process_security_policy.h
+++ b/content/public/browser/child_process_security_policy.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "content/common/content_export.h"
+#include "url/gurl.h"
namespace base {
class FilePath;
@@ -153,6 +154,12 @@ class ChildProcessSecurityPolicy {
// Grants permission to send system exclusive message to any MIDI devices.
virtual void GrantSendMidiSysExMessage(int child_id) = 0;
+
+ // Returns true if the process is permitted to read and modify the data for
+ // the given origin. This is currently used for cookies and passwords.
+ // Does not affect cookies attached to or set by network requests.
+ // Only might return false if the --site-per-process flag is used.
+ virtual bool CanAccessDataForOrigin(int child_id, const GURL& gurl) = 0;
};
} // namespace content
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698