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

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: adding test, bad message 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
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..d4c213d208ba90f0076d6ccfe9ac8b7a10a91ce7 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,13 @@ 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

Powered by Google App Engine
This is Rietveld 408576698