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

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

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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: content/public/browser/browser_context.h
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index cbac82f4df85a73933bc7173f56d62980ae3cdf6..985d8740679aec1ce7d3c401e7e84dea681cc557 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -35,6 +35,7 @@ class DownloadManager;
class DownloadManagerDelegate;
class GeolocationPermissionContext;
class IndexedDBContext;
+class MidiPermissionContext;
class ResourceContext;
class SiteInstance;
class StoragePartition;
@@ -125,16 +126,6 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
const base::FilePath& partition_path,
bool in_memory) = 0;
- typedef base::Callback<void(bool)> MIDISysExPermissionCallback;
-
- // Requests a permission to use system exclusive messages in MIDI events.
- // |callback| will be invoked when the request is resolved.
- virtual void RequestMIDISysExPermission(
- int render_process_id,
- int render_view_id,
- const GURL& requesting_frame,
- const MIDISysExPermissionCallback& callback) = 0;
-
// Returns the resource context.
virtual ResourceContext* GetResourceContext() = 0;
@@ -147,6 +138,10 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// return NULL, in which case geolocation requests will always be allowed.
virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0;
+ // Returns the MIDI permission context for this context. It's valid to
+ // return NULL, in which case MIDI requests will always be allowed.
+ virtual MidiPermissionContext* GetMidiPermissionContext() = 0;
+
// Returns a special storage policy implementation, or NULL.
virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0;
};

Powered by Google App Engine
This is Rietveld 408576698