class MidiPermissionContext;
class Profile;

class MidiPermissionContextFactory
    : public PermissionContextFactoryBase {
 public:
  static MidiPermissionContext* GetForProfile(Profile* profile);
  static MidiPermissionContextFactory* GetInstance();

 private:
  friend struct base::DefaultSingletonTraits<MidiPermissionContextFactory>;

  MidiPermissionContextFactory();
  ~MidiPermissionContextFactory() override;

  // BrowserContextKeyedBaseFactory methods:
  KeyedService* BuildServiceInstanceFor(
      content::BrowserContext* profile) const override;

  DISALLOW_COPY_AND_ASSIGN(MidiPermissionContextFactory);
};

#endif  // CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_FACTORY_H_
