Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Unified Diff: device/serial/serial_service_impl.h

Issue 2410743002: Remove the mojo serial interfaces and related infrastructure. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/serial/serial_serialization.mojom ('k') | device/serial/serial_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_service_impl.h
diff --git a/device/serial/serial_service_impl.h b/device/serial/serial_service_impl.h
deleted file mode 100644
index 68538974541ec2ee5739c95bf5f206fcc5138621..0000000000000000000000000000000000000000
--- a/device/serial/serial_service_impl.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// 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_SERIAL_SERIAL_SERVICE_IMPL_H_
-#define DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/single_thread_task_runner.h"
-#include "base/threading/thread_task_runner_handle.h"
-#include "device/serial/data_stream.mojom.h"
-#include "device/serial/serial.mojom.h"
-#include "device/serial/serial_connection_factory.h"
-#include "device/serial/serial_device_enumerator.h"
-
-namespace device {
-
-class SerialServiceImpl : public serial::SerialService {
- public:
- explicit SerialServiceImpl(
- scoped_refptr<SerialConnectionFactory> connection_factory);
- SerialServiceImpl(scoped_refptr<SerialConnectionFactory> connection_factory,
- std::unique_ptr<SerialDeviceEnumerator> device_enumerator);
- ~SerialServiceImpl() override;
-
- static void Create(scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
- mojo::InterfaceRequest<serial::SerialService> request);
- static void CreateOnMessageLoop(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
- mojo::InterfaceRequest<serial::SerialService> request);
-
- // SerialService overrides.
- void GetDevices(const GetDevicesCallback& callback) override;
- void Connect(
- const mojo::String& path,
- serial::ConnectionOptionsPtr options,
- mojo::InterfaceRequest<serial::Connection> connection_request,
- mojo::InterfaceRequest<serial::DataSink> sink,
- mojo::InterfaceRequest<serial::DataSource> source,
- mojo::InterfacePtr<serial::DataSourceClient> source_client) override;
-
- private:
- SerialDeviceEnumerator* GetDeviceEnumerator();
- bool IsValidPath(const mojo::String& path);
-
- std::unique_ptr<SerialDeviceEnumerator> device_enumerator_;
- scoped_refptr<SerialConnectionFactory> connection_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl);
-};
-
-} // namespace device
-
-#endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
« no previous file with comments | « device/serial/serial_serialization.mojom ('k') | device/serial/serial_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698