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; |
}; |