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

Unified Diff: extensions/common/extension_messages.h

Issue 2820333003: Revert of Communicate ExtensionSettings policy to renderers (Closed)
Patch Set: Created 3 years, 8 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 | « extensions/common/extension.h ('k') | extensions/common/extension_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_messages.h
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 78ed533ede41309486a63ebc9de805090105bc01..f7952e80e21ca0d0e2b1033c3c96f572add242d4 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -293,9 +293,6 @@
extensions::ManifestPermissionSet manifest_permissions;
extensions::URLPatternSet explicit_hosts;
extensions::URLPatternSet scriptable_hosts;
- extensions::URLPatternSet policy_blocked_hosts;
- extensions::URLPatternSet policy_allowed_hosts;
- bool uses_default_policy_host_restrictions;
};
struct ExtensionMsg_Loaded_Params {
@@ -323,14 +320,6 @@
ExtensionMsg_PermissionSetStruct active_permissions;
ExtensionMsg_PermissionSetStruct withheld_permissions;
std::map<int, ExtensionMsg_PermissionSetStruct> tab_specific_permissions;
-
- // Contains URLPatternSets defining which URLs an extension may not interact
- // with by policy.
- extensions::URLPatternSet policy_blocked_hosts;
- extensions::URLPatternSet policy_allowed_hosts;
-
- // If the extension uses the default list of blocked / allowed URLs.
- bool uses_default_policy_blocked_allowed_hosts;
// We keep this separate so that it can be used in logging.
std::string id;
@@ -453,15 +442,6 @@
IPC_STRUCT_MEMBER(std::string, extension_id)
IPC_STRUCT_MEMBER(ExtensionMsg_PermissionSetStruct, active_permissions)
IPC_STRUCT_MEMBER(ExtensionMsg_PermissionSetStruct, withheld_permissions)
- IPC_STRUCT_MEMBER(extensions::URLPatternSet, policy_blocked_hosts)
- IPC_STRUCT_MEMBER(extensions::URLPatternSet, policy_allowed_hosts)
- IPC_STRUCT_MEMBER(bool, uses_default_policy_host_restrictions)
-IPC_STRUCT_END()
-
-// Parameters structure for ExtensionMsg_UpdateDefaultPolicyHostRestrictions.
-IPC_STRUCT_BEGIN(ExtensionMsg_UpdateDefaultPolicyHostRestrictions_Params)
- IPC_STRUCT_MEMBER(extensions::URLPatternSet, default_policy_blocked_hosts)
- IPC_STRUCT_MEMBER(extensions::URLPatternSet, default_policy_allowed_hosts)
IPC_STRUCT_END()
// Messages sent from the browser to the renderer:
@@ -568,10 +548,6 @@
IPC_MESSAGE_CONTROL1(ExtensionMsg_UpdatePermissions,
ExtensionMsg_UpdatePermissions_Params)
-// Tell the renderer to update an extension's policy_blocked_hosts set.
-IPC_MESSAGE_CONTROL1(ExtensionMsg_UpdateDefaultPolicyHostRestrictions,
- ExtensionMsg_UpdateDefaultPolicyHostRestrictions_Params)
-
// Tell the render view about new tab-specific permissions for an extension.
IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdateTabSpecificPermissions,
GURL /* url */,
« no previous file with comments | « extensions/common/extension.h ('k') | extensions/common/extension_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698