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

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

Issue 2640033006: Convert AutoBlocker static class to KeyedService. (Closed)
Patch Set: Git surgery. Created 3 years, 11 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
« no previous file with comments | « chrome/browser/permissions/permission_uma_util.cc ('k') | chrome/browser/permissions/permission_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_util.h
diff --git a/chrome/browser/permissions/permission_util.h b/chrome/browser/permissions/permission_util.h
index 7e482d846b1f68f5e990bc325c746b95e412e66f..2ad0c7ed2462063d80ca24407a5ecba639bd096a 100644
--- a/chrome/browser/permissions/permission_util.h
+++ b/chrome/browser/permissions/permission_util.h
@@ -45,6 +45,11 @@ class PermissionUtil {
// Returns the permission string for the given PermissionType.
static std::string GetPermissionString(content::PermissionType permission);
+ // Return the stringified version of the PermissionType enum that Safe
+ // Browsing uses for the API Blacklist.
+ static std::string ConvertPermissionTypeToSafeBrowsingName(
+ const content::PermissionType& permission_type);
+
// Returns the request type corresponding to a permission type.
static PermissionRequestType GetRequestType(content::PermissionType type);
« no previous file with comments | « chrome/browser/permissions/permission_uma_util.cc ('k') | chrome/browser/permissions/permission_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698