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

Unified Diff: content/child/site_isolation_policy.h

Issue 23842002: Whitelisting exts and plugins from cross-site document blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Comments & Coding style are improved. Created 7 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/child/resource_dispatcher.cc ('k') | content/child/site_isolation_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/site_isolation_policy.h
diff --git a/content/child/site_isolation_policy.h b/content/child/site_isolation_policy.h
index bf816a967b4298e60c485a6434d7fcdc75e01472..ec5d889409d3b471acb55d60aaf4306d1fbb1b0c 100644
--- a/content/child/site_isolation_policy.h
+++ b/content/child/site_isolation_policy.h
@@ -54,6 +54,8 @@ namespace content {
class CONTENT_EXPORT SiteIsolationPolicy {
public:
+ // Set activation flag for the UMA data collection for this renderer process.
+ static void SetPolicyEnabled(bool enabled);
// Records the bookkeeping data about the HTTP header information for the
// request identified by |request_id|. The bookkeeping data is used by
@@ -63,6 +65,7 @@ class CONTENT_EXPORT SiteIsolationPolicy {
GURL& frame_origin,
GURL& response_url,
ResourceType::Type resource_type,
+ int origin_pid,
const webkit_glue::ResourceResponseInfo& info);
// Examines the first network packet in case response_url is registered as a
@@ -167,6 +170,10 @@ private:
// decision. The key is a request id maintained by ResourceDispatcher.
static RequestIdToResultMap* GetRequestIdToResultMap();
+ // This is false by default, but enables UMA logging and cross-site document
+ // blocking.
+ static bool g_policy_enabled;
+
// Never needs to be constructed/destructed.
SiteIsolationPolicy() {}
~SiteIsolationPolicy() {}
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/site_isolation_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698