Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |