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

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

Issue 18647002: Web MIDI: add RequestMIDISysExPermission to BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for commit Created 7 years, 5 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 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;
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698