diff options
Diffstat (limited to 'devel/electron38/files/patch-services_device_usb_usb__service__fake.cc')
-rw-r--r-- | devel/electron38/files/patch-services_device_usb_usb__service__fake.cc | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/devel/electron38/files/patch-services_device_usb_usb__service__fake.cc b/devel/electron38/files/patch-services_device_usb_usb__service__fake.cc new file mode 100644 index 000000000000..99eb5b48a8e3 --- /dev/null +++ b/devel/electron38/files/patch-services_device_usb_usb__service__fake.cc @@ -0,0 +1,53 @@ +--- services/device/usb/usb_service_fake.cc.orig 2025-09-10 14:34:09 UTC ++++ services/device/usb/usb_service_fake.cc +@@ -0,0 +1,50 @@ ++// 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. ++ ++#include "services/device/usb/usb_service_fake.h" ++ ++#include <stdint.h> ++ ++#include <list> ++#include <memory> ++#include <set> ++#include <utility> ++ ++#include "base/barrier_closure.h" ++#include "base/containers/contains.h" ++#include "base/location.h" ++#include "base/notimplemented.h" ++#include "base/memory/ref_counted_memory.h" ++#include "base/memory/weak_ptr.h" ++#include "base/strings/string_number_conversions.h" ++#include "base/strings/utf_string_conversions.h" ++#include "base/task/sequenced_task_runner.h" ++#include "base/task/single_thread_task_runner.h" ++#include "base/task/thread_pool.h" ++#include "base/threading/scoped_blocking_call.h" ++#include "build/build_config.h" ++#include "components/device_event_log/device_event_log.h" ++#include "services/device/usb/usb_device_handle.h" ++#include "services/device/usb/usb_error.h" ++#include "services/device/usb/webusb_descriptors.h" ++ ++namespace device { ++ ++UsbServiceImpl::UsbServiceImpl() ++ : task_runner_(base::SequencedTaskRunner::GetCurrentDefault()) { ++ NOTIMPLEMENTED(); ++} ++ ++UsbServiceImpl::~UsbServiceImpl() { ++ NOTIMPLEMENTED(); ++ NotifyWillDestroyUsbService(); ++} ++ ++void UsbServiceImpl::GetDevices(GetDevicesCallback callback) { ++ NOTIMPLEMENTED(); ++ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); ++ UsbService::GetDevices(std::move(callback)); ++} ++ ++} // namespace device |