[email protected] | 44ecb83 | 2013-08-02 09:06:45 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 29998f9 | 2014-06-15 03:12:14 | [diff] [blame] | 5 | #include "chrome/browser/media/midi_permission_context.h" |
[email protected] | 44ecb83 | 2013-08-02 09:06:45 | [diff] [blame] | 6 | |
[email protected] | 29998f9 | 2014-06-15 03:12:14 | [diff] [blame] | 7 | MidiPermissionContext::MidiPermissionContext(Profile* profile) |
raymes | 21b9affc | 2017-05-31 06:15:26 | [diff] [blame] | 8 | : PermissionContextBase(profile, |
9 | CONTENT_SETTINGS_TYPE_MIDI, | ||||
Luna Lu | 730f283f | 2018-02-08 16:38:03 | [diff] [blame] | 10 | blink::mojom::FeaturePolicyFeature::kMidiFeature) {} |
[email protected] | 44ecb83 | 2013-08-02 09:06:45 | [diff] [blame] | 11 | |
[email protected] | 29998f9 | 2014-06-15 03:12:14 | [diff] [blame] | 12 | MidiPermissionContext::~MidiPermissionContext() { |
[email protected] | 44ecb83 | 2013-08-02 09:06:45 | [diff] [blame] | 13 | } |
14 | |||||
raymes | c2cf640f | 2017-05-29 01:35:27 | [diff] [blame] | 15 | ContentSetting MidiPermissionContext::GetPermissionStatusInternal( |
16 | content::RenderFrameHost* render_frame_host, | ||||
17 | const GURL& requesting_origin, | ||||
18 | const GURL& embedding_origin) const { | ||||
19 | return CONTENT_SETTING_ALLOW; | ||||
[email protected] | 00880a0 | 2013-10-30 03:18:30 | [diff] [blame] | 20 | } |
mlamouri | a31c6ff1 | 2015-06-01 15:40:52 | [diff] [blame] | 21 | |