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

Unified Diff: device/serial/serial_connection.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.mojom ('k') | device/serial/serial_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection.h
diff --git a/device/serial/serial_connection.h b/device/serial/serial_connection.h
deleted file mode 100644
index c12a4339588bd5cfefbe4995c87a4be6e98738e2..0000000000000000000000000000000000000000
--- a/device/serial/serial_connection.h
+++ /dev/null
@@ -1,55 +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_CONNECTION_H_
-#define DEVICE_SERIAL_SERIAL_CONNECTION_H_
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "device/serial/serial.mojom.h"
-
-namespace device {
-
-class DataSinkReceiver;
-class DataSourceSender;
-class ReadOnlyBuffer;
-class SerialIoHandler;
-class WritableBuffer;
-
-class SerialConnection : public serial::Connection {
- public:
- SerialConnection(scoped_refptr<SerialIoHandler> io_handler,
- mojo::InterfaceRequest<serial::DataSink> sink,
- mojo::InterfaceRequest<serial::DataSource> source,
- mojo::InterfacePtr<serial::DataSourceClient> source_client);
- ~SerialConnection() override;
-
- // serial::Connection overrides.
- void GetInfo(const GetInfoCallback& callback) override;
- void SetOptions(serial::ConnectionOptionsPtr options,
- const SetOptionsCallback& callback) override;
- void SetControlSignals(serial::HostControlSignalsPtr signals,
- const SetControlSignalsCallback& callback) override;
- void GetControlSignals(const GetControlSignalsCallback& callback) override;
- void Flush(const FlushCallback& callback) override;
-
- private:
- void OnSendPipeReady(std::unique_ptr<ReadOnlyBuffer> buffer);
- void OnSendCancelled(int32_t error);
- void OnReceivePipeReady(std::unique_ptr<WritableBuffer> buffer);
-
- scoped_refptr<SerialIoHandler> io_handler_;
- scoped_refptr<DataSinkReceiver> receiver_;
- scoped_refptr<DataSourceSender> sender_;
-
- DISALLOW_COPY_AND_ASSIGN(SerialConnection);
-};
-
-} // namespace device
-
-#endif // DEVICE_SERIAL_SERIAL_CONNECTION_H_
« no previous file with comments | « device/serial/serial.mojom ('k') | device/serial/serial_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698