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

Unified Diff: device/serial/serial_connection_factory.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_connection.cc ('k') | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection_factory.h
diff --git a/device/serial/serial_connection_factory.h b/device/serial/serial_connection_factory.h
deleted file mode 100644
index b0644fa39fa4fefb89cf489dcca1eebd9055eac0..0000000000000000000000000000000000000000
--- a/device/serial/serial_connection_factory.h
+++ /dev/null
@@ -1,54 +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_FACTORY_H_
-#define DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.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 "mojo/public/cpp/bindings/interface_request.h"
-
-namespace device {
-
-class SerialIoHandler;
-
-class SerialConnectionFactory
- : public base::RefCountedThreadSafe<SerialConnectionFactory> {
- public:
- typedef base::Callback<scoped_refptr<SerialIoHandler>()> IoHandlerFactory;
-
- SerialConnectionFactory(
- const IoHandlerFactory& io_handler_factory,
- scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner);
-
- void CreateConnection(
- const std::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);
-
- private:
- friend class base::RefCountedThreadSafe<SerialConnectionFactory>;
- class ConnectTask;
-
- virtual ~SerialConnectionFactory();
-
- const IoHandlerFactory io_handler_factory_;
- scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(SerialConnectionFactory);
-};
-
-} // namespace device
-
-#endif // DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_
« no previous file with comments | « device/serial/serial_connection.cc ('k') | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698