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

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

Issue 1382783002: Store USB device permissions in website settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert WebUSBPermissionStore to a PermissionContext. Created 5 years, 2 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: chrome/browser/permissions/permission_context_base.h
diff --git a/chrome/browser/permissions/permission_context_base.h b/chrome/browser/permissions/permission_context_base.h
index 6c084e179c48da4dae0045acb35b18fed494336c..26e5bd51d2407904146946ae31853636d3b89103 100644
--- a/chrome/browser/permissions/permission_context_base.h
+++ b/chrome/browser/permissions/permission_context_base.h
@@ -121,6 +121,9 @@ class PermissionContextBase : public KeyedService {
// Returns the profile associated with this permission context.
Profile* profile() const;
+ // Returns the permission type managed by this context.
+ ContentSettingsType type() const;
mlamouri (slow - plz ping) 2015/10/06 11:03:17 We want stuff in permissions/ to abstract ContentS
Reilly Grant (use Gerrit) 2015/10/06 20:45:30 That's why I made it a protected method. Otherwise
+
// Store the decided permission as a content setting.
// virtual since the permission might be stored with different restrictions
// (for example for desktop notifications).

Powered by Google App Engine
This is Rietveld 408576698