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.
5 #ifndef CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_
8 #include "chrome/browser/permissions/permission_context_base.h"
11 class PermissionRequestID
;
13 class MidiPermissionContext
: public PermissionContextBase
{
15 explicit MidiPermissionContext(Profile
* profile
);
16 ~MidiPermissionContext() override
;
19 // PermissionContextBase:
20 void UpdateTabContext(const PermissionRequestID
& id
,
21 const GURL
& requesting_frame
,
22 bool allowed
) override
;
23 bool IsRestrictedToSecureOrigins() const override
;
25 DISALLOW_COPY_AND_ASSIGN(MidiPermissionContext
);
28 #endif // CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_