Index: content/public/browser/browser_context.h |
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h |
index 1fb10528968162b284a5f2a9e824f5e2e50854a2..c7b916fb03be9fdd7755123947b355d6bd898916 100644 |
--- a/content/public/browser/browser_context.h |
+++ b/content/public/browser/browser_context.h |
@@ -44,10 +44,6 @@ class StoragePartition; |
// thread. |
class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { |
public: |
- // Used in ForEachStoragePartition(). The first argument is the partition id. |
- // The second argument is the StoragePartition object for that partition id. |
- typedef base::Callback<void(StoragePartition*)> StoragePartitionCallback; |
- |
static DownloadManager* GetDownloadManager(BrowserContext* browser_context); |
// Returns BrowserContext specific external mount points. It may return NULL |
@@ -59,6 +55,7 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { |
BrowserContext* browser_context, SiteInstance* site_instance); |
static content::StoragePartition* GetStoragePartitionForSite( |
BrowserContext* browser_context, const GURL& site); |
+ typedef base::Callback<void(StoragePartition*)> StoragePartitionCallback; |
static void ForEachStoragePartition( |
BrowserContext* browser_context, |
const StoragePartitionCallback& callback); |
@@ -128,6 +125,16 @@ 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; |