| // Copyright 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ |
| #define CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ |
| |
| #include "base/macros.h" |
| #include "chrome/browser/permissions/permission_context_base.h" |
| |
| class MidiPermissionContext : public PermissionContextBase { |
| public: |
| explicit MidiPermissionContext(Profile* profile); |
| ~MidiPermissionContext() override; |
| |
| private: |
| // PermissionContextBase: |
| ContentSetting GetPermissionStatusInternal( |
| content::RenderFrameHost* render_frame_host, |
| const GURL& requesting_origin, |
| const GURL& embedding_origin) const override; |
| bool IsRestrictedToSecureOrigins() const override; |
| |
| DISALLOW_COPY_AND_ASSIGN(MidiPermissionContext); |
| }; |
| |
| #endif // CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ |