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 5 #ifndef CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ 7 8 #include "chrome/browser/content_settings/permission_context_base.h" 9 10 class GURL; 11 class PermissionRequestID; 12 13 class MidiPermissionContext : public PermissionContextBase { 14 public: 15 explicit MidiPermissionContext(Profile* profile); 16 virtual ~MidiPermissionContext(); 17 18 private: 19 20 // PermissionContextBase: 21 virtual void UpdateTabContext(const PermissionRequestID& id, 22 const GURL& requesting_frame, 23 bool allowed) OVERRIDE; 24 25 DISALLOW_COPY_AND_ASSIGN(MidiPermissionContext); 26 }; 27 28 #endif // CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ 29