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..a4d536a3ebfc711c02f6aa5b0fea6425e9ae36ad 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; |
Takashi Toyoshima
2013/07/12 12:45:50
Move here to follow style guide, and remove commen
|
static void ForEachStoragePartition( |
BrowserContext* browser_context, |
const StoragePartitionCallback& callback); |
@@ -128,6 +125,15 @@ 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. |
jam
2013/07/12 16:06:35
nit: a blank line above this would aid readability
Takashi Toyoshima
2013/07/12 16:37:30
Done.
|
+ // |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; |