Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / media / midi_permission_context.h
blobaafb580327baa0710b31ac9fef66a209463a1da8
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"
10 class GURL;
11 class PermissionRequestID;
13 class MidiPermissionContext : public PermissionContextBase {
14 public:
15 explicit MidiPermissionContext(Profile* profile);
16 ~MidiPermissionContext() override;
18 private:
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_