aboutsummaryrefslogtreecommitdiff
path: root/devel/electron33/files/patch-services_device_hid_hid__service__freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron33/files/patch-services_device_hid_hid__service__freebsd.h')
-rw-r--r--devel/electron33/files/patch-services_device_hid_hid__service__freebsd.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/devel/electron33/files/patch-services_device_hid_hid__service__freebsd.h b/devel/electron33/files/patch-services_device_hid_hid__service__freebsd.h
deleted file mode 100644
index b60d2fc84553..000000000000
--- a/devel/electron33/files/patch-services_device_hid_hid__service__freebsd.h
+++ /dev/null
@@ -1,52 +0,0 @@
---- services/device/hid/hid_service_freebsd.h.orig 2022-02-07 13:39:41 UTC
-+++ services/device/hid/hid_service_freebsd.h
-@@ -0,0 +1,49 @@
-+// Copyright 2014 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 DEVICE_HID_HID_SERVICE_FREEBSD_H_
-+#define DEVICE_HID_HID_SERVICE_FREEBSD_H_
-+
-+#include <string>
-+
-+#include "base/memory/ref_counted.h"
-+#include "base/memory/weak_ptr.h"
-+#include "base/timer/timer.h"
-+#include "services/device/hid/hid_service.h"
-+#include "net/base/io_buffer.h"
-+
-+namespace device {
-+
-+class HidServiceFreeBSD : public HidService {
-+ public:
-+ HidServiceFreeBSD();
-+
-+ HidServiceFreeBSD(const HidServiceFreeBSD&) = delete;
-+ HidServiceFreeBSD& operator=(const HidServiceFreeBSD&) = delete;
-+
-+ ~HidServiceFreeBSD() override;
-+
-+ void Connect(const std::string& device_guid,
-+ bool allow_protected_reports,
-+ bool allow_fido_reports,
-+ ConnectCallback connect) override;
-+ base::WeakPtr<HidService> GetWeakPtr() override;
-+
-+ private:
-+ struct ConnectParams;
-+ class BlockingTaskRunnerHelper;
-+
-+ static void OpenOnBlockingThread(std::unique_ptr<ConnectParams> params);
-+ static void FinishOpen(std::unique_ptr<ConnectParams> params);
-+
-+ const scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
-+ // |helper_| lives on the sequence |blocking_task_runner_| posts to and holds
-+ // a weak reference back to the service that owns it.
-+ std::unique_ptr<BlockingTaskRunnerHelper, base::OnTaskRunnerDeleter> helper_;
-+ base::WeakPtrFactory<HidServiceFreeBSD> weak_factory_{this};
-+};
-+
-+} // namespace device
-+
-+#endif // DEVICE_HID_HID_SERVICE_FREEBSD_H_