Chromium Code Reviews| Index: chrome/browser/safe_browsing/ui_manager.h |
| diff --git a/chrome/browser/safe_browsing/ui_manager.h b/chrome/browser/safe_browsing/ui_manager.h |
| index b9b7e528776c46bf77029701458c9f1ddb226a3b..219ff40e6e8cc79e873d0afd0aca31888120a777 100644 |
| --- a/chrome/browser/safe_browsing/ui_manager.h |
| +++ b/chrome/browser/safe_browsing/ui_manager.h |
| @@ -16,6 +16,7 @@ |
| #include "base/memory/ref_counted.h" |
| #include "base/observer_list.h" |
| #include "base/time/time.h" |
| +#include "chrome/browser/permissions/permission_uma_util.h" |
| #include "components/safe_browsing_db/hit_report.h" |
| #include "components/safe_browsing_db/util.h" |
| #include "content/public/browser/browser_thread.h" |
| @@ -148,6 +149,12 @@ class SafeBrowsingUIManager |
| void ReportInvalidCertificateChain(const std::string& serialized_report, |
| const base::Closure& callback); |
| + // Report permission action to SafeBrowsing servers. Can only be called on UI |
| + // thread. |
| + void ReportPermissionAction(const GURL& origin, |
| + content::PermissionType permission, |
|
raymes
2016/06/16 01:10:23
nit: we need to include permission_type.h too
|
| + PermissionAction action); |
| + |
| // Add and remove observers. These methods must be invoked on the UI thread. |
| void AddObserver(Observer* observer); |
| void RemoveObserver(Observer* remove); |
| @@ -168,6 +175,11 @@ class SafeBrowsingUIManager |
| void ReportInvalidCertificateChainOnIOThread( |
| const std::string& serialized_report); |
| + // Report permission action to SafeBrowsing servers. |
| + void ReportPermissionActionOnIOThread(const GURL& origin, |
| + content::PermissionType permission, |
| + PermissionAction action); |
| + |
| // Updates the whitelist state. Called on the UI thread. |
| void AddToWhitelist(const UnsafeResource& resource); |