Index: chrome/browser/permissions/permission_decision_auto_blocker.h |
diff --git a/chrome/browser/permissions/permission_decision_auto_blocker.h b/chrome/browser/permissions/permission_decision_auto_blocker.h |
index 79bc114478311ddc990350f5891f3e3eefe795f4..d292f4a12876e892541650c70a20c8df2e0bad91 100644 |
--- a/chrome/browser/permissions/permission_decision_auto_blocker.h |
+++ b/chrome/browser/permissions/permission_decision_auto_blocker.h |
@@ -11,6 +11,7 @@ |
#include "base/memory/singleton.h" |
#include "base/time/default_clock.h" |
#include "chrome/browser/permissions/permission_result.h" |
+#include "components/content_settings/core/browser/host_content_settings_map.h" |
#include "components/content_settings/core/common/content_settings_types.h" |
#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
#include "components/keyed_service/core/keyed_service.h" |
@@ -58,6 +59,16 @@ class PermissionDecisionAutoBlocker : public KeyedService { |
static PermissionDecisionAutoBlocker* GetForProfile(Profile* profile); |
+ // Checks the status of the content setting to determine if |request_origin| |
+ // is under embargo for |permission|. This checks both embargo for Permissions |
+ // Blacklisting and repeated dismissals. This method should only be used if |
+ // getting the profile-bound PermissionDecisionAutoBlocker object is not |
+ // possible (e.g. we're on the IO thread). |
raymes
2017/06/07 02:57:54
nit: The last sentence is a little hard to underst
dominickn
2017/06/08 01:03:04
Done.
|
+ static PermissionResult GetEmbargoResult(HostContentSettingsMap* settings_map, |
+ const GURL& request_origin, |
+ ContentSettingsType permission, |
+ base::Time current_time); |
+ |
// Updates the threshold to start blocking prompts from the field trial. |
static void UpdateFromVariations(); |