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

Unified Diff: content/public/browser/permission_type.h

Issue 2046293002: Implement DelegationTracker for tracking delegated permissions to RenderFrameHosts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-2-blink
Patch Set: Created 4 years, 6 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
Index: content/public/browser/permission_type.h
diff --git a/content/public/browser/permission_type.h b/content/public/browser/permission_type.h
index ec9e8c5c082a5091f060233212c1ca9261a4fc18..c2e8d1989f3b12d546bbef42a57df0316867fecb 100644
--- a/content/public/browser/permission_type.h
+++ b/content/public/browser/permission_type.h
@@ -28,6 +28,12 @@ enum class PermissionType {
NUM,
};
+struct PermissionTypeHash {
+ std::size_t operator()(const content::PermissionType& type) const {
+ return static_cast<size_t>(type);
+ }
+};
+
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_PERMISSION_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698