chromium/extensions/browser/api/hid/hid_api.h

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_BROWSER_API_HID_HID_API_H_
#define EXTENSIONS_BROWSER_API_HID_HID_API_H_

#include <stddef.h>

#include <string>

#include "base/memory/raw_ptr.h"
#include "extensions/browser/api/api_resource_manager.h"
#include "extensions/browser/api/hid/hid_connection_resource.h"
#include "extensions/browser/api/hid/hid_device_manager.h"
#include "extensions/browser/extension_function.h"
#include "extensions/common/api/hid.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "services/device/public/mojom/hid.mojom.h"

namespace extensions {

class HidGetDevicesFunction : public ExtensionFunction {};

class HidConnectFunction : public ExtensionFunction {};

class HidDisconnectFunction : public ExtensionFunction {};

// Base class for extension functions that start some asynchronous work after
// looking up a HidConnection.
class HidConnectionIoFunction : public ExtensionFunction {};

class HidReceiveFunction : public HidConnectionIoFunction {};

class HidSendFunction : public HidConnectionIoFunction {};

class HidReceiveFeatureReportFunction : public HidConnectionIoFunction {};

class HidSendFeatureReportFunction : public HidConnectionIoFunction {};

}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_API_HID_HID_API_H_