blob: 97e70967975d45ac9e4d2a0c3bf5e82fc5efe452 [file] [log] [blame]
// Copyright 2019 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_UI_HID_HID_CHOOSER_H_
#define CHROME_BROWSER_UI_HID_HID_CHOOSER_H_
#include "base/callback_helpers.h"
#include "base/macros.h"
#include "content/public/browser/hid_chooser.h"
// Owns a HID device chooser dialog and closes it when destroyed.
class HidChooser : public content::HidChooser {
public:
explicit HidChooser(base::OnceClosure close_closure);
~HidChooser() override = default;
private:
base::ScopedClosureRunner closure_runner_;
DISALLOW_COPY_AND_ASSIGN(HidChooser);
};
#endif // CHROME_BROWSER_UI_HID_HID_CHOOSER_H_