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

Unified Diff: chrome/browser/permissions/permission_result.h

Issue 2945243002: Permissions: Allow PermissionManager to return more PermissionStatusSources.
Patch Set: Cleanup. Created 3 years, 6 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: chrome/browser/permissions/permission_result.h
diff --git a/chrome/browser/permissions/permission_result.h b/chrome/browser/permissions/permission_result.h
index 1173c4aeb5397b4807604acbf713c91f764b4879..cb671d96a99e0d3002472800c109a0b2c6bccba7 100644
--- a/chrome/browser/permissions/permission_result.h
+++ b/chrome/browser/permissions/permission_result.h
@@ -26,6 +26,20 @@ enum class PermissionStatusSource {
// The status is the result of being blocked due to the user ignoring a
// permission prompt multiple times.
MULTIPLE_IGNORES,
+
+ // This origin is insecure, thus its access to some permissions has been
+ // restricted, such as camera, microphone, etc.
+ INSECURE_ORIGIN,
+
+ // The following two PermissionStatusSources cover the permission being
+ // individually controlled for a certain origin, or are part of a group of
+ // origins controlled via a URL pattern, e.g. "https://*".
+
+ // Controlled by enterprise policy.
+ ENTERPRISE_POLICY,
+
+ // Controlled by an extension.
+ EXTENSION,
};
struct PermissionResult {
« no previous file with comments | « chrome/browser/permissions/permission_request_manager.h ('k') | chrome/browser/permissions/permission_uma_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698