summaryrefslogtreecommitdiffstats
path: root/content/shell/browser/shell_browser_context.h
diff options
context:
space:
mode:
authorkkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-30 03:18:30 +0000
committerkkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-30 03:18:30 +0000
commit00880a0c5a9b4add3539e63c509e5117f1074b0a (patch)
treeeffed07b08782e2888cf88ce684778e6b4d8be86 /content/shell/browser/shell_browser_context.h
parent8ea113d23be6646aa06058ec94bdc0cf881d62ba (diff)
downloadchromium_src-00880a0c5a9b4add3539e63c509e5117f1074b0a.zip
chromium_src-00880a0c5a9b4add3539e63c509e5117f1074b0a.tar.gz
chromium_src-00880a0c5a9b4add3539e63c509e5117f1074b0a.tar.bz2
Cancel MIDI permission request infobar on MIDIAccess stop.
On WebCore::MIDIAccess::stop(), renderer didn't cancel the MIDI permission request infobar. As a result, when an iframe webpage that requested MIDI permission is navigated away, the MIDI infobar is not dismissed, unlike the geolocation infobar. This CL makes the MIDI infobar be dismissed on WebCore::MIDIAccess::stop(). BUG=309893 Review URL: https://codereview.chromium.org/38043004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/browser/shell_browser_context.h')
-rw-r--r--content/shell/browser/shell_browser_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/shell/browser/shell_browser_context.h b/content/shell/browser/shell_browser_context.h
index ec71591..f49fa28 100644
--- a/content/shell/browser/shell_browser_context.h
+++ b/content/shell/browser/shell_browser_context.h
@@ -46,8 +46,14 @@ class ShellBrowserContext : public BrowserContext {
virtual void RequestMIDISysExPermission(
int render_process_id,
int render_view_id,
+ int bridge_id,
const GURL& requesting_frame,
const MIDISysExPermissionCallback& callback) OVERRIDE;
+ virtual void CancelMIDISysExPermissionRequest(
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ const GURL& requesting_frame) OVERRIDE;
virtual ResourceContext* GetResourceContext() OVERRIDE;
virtual GeolocationPermissionContext*
GetGeolocationPermissionContext() OVERRIDE;