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

Side by Side Diff: chrome/browser/permissions/permission_prompt_decision_log.h

Issue 2184823007: Add a feature which, when enabled, blocks permissions after X prompt dismissals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary PermissionUtil changes Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_DECISION_LOG_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_DECISION_LOG_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/permission_type.h"
10 #include "url/gurl.h"
11
12 class GURL;
13 class Profile;
14
15 class PermissionPromptDecisionLog {
raymes 2016/08/01 05:09:11 Yeah naming is hard! Maybe PermissionPromptDismiss
dominickn 2016/08/03 05:38:46 I didn't want to call it "Dismissal" in case we wa
16 public:
17 PermissionPromptDecisionLog();
18 bool ShouldChangeDismissalToBlock(Profile* profile,
19 const GURL& url,
20 content::PermissionType permission);
21
22 private:
23 void UpdateFromVariations();
24
25 int prompt_dismissals_before_block_;
26 };
27
28
raymes 2016/08/01 05:09:11 nit: no newline
dominickn 2016/08/03 05:38:46 Done.
29 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_PROMPT_DECISION_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698