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

Unified Diff: device/serial/data_sink_receiver.h

Issue 1212023004: Convert all usages of mojo::ErrorHandler in //device/serial to callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/data_sender.cc ('k') | device/serial/data_sink_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_sink_receiver.h
diff --git a/device/serial/data_sink_receiver.h b/device/serial/data_sink_receiver.h
index 7a808ea887dc7f2c253a6a49a96e6831f47dc858..8bb306e0c1bc8460d747afc07e1a538ffd5a02fe 100644
--- a/device/serial/data_sink_receiver.h
+++ b/device/serial/data_sink_receiver.h
@@ -18,8 +18,7 @@
namespace device {
class DataSinkReceiver : public base::RefCounted<DataSinkReceiver>,
- public serial::DataSink,
- public mojo::ErrorHandler {
+ public serial::DataSink {
public:
typedef base::Callback<void(scoped_ptr<ReadOnlyBuffer>)> ReadyCallback;
typedef base::Callback<void(int32_t error)> CancelCallback;
@@ -54,7 +53,7 @@ class DataSinkReceiver : public base::RefCounted<DataSinkReceiver>,
const mojo::Callback<void(uint32_t, int32_t)>& callback) override;
void ClearError() override;
- void OnConnectionError() override;
+ void OnConnectionError();
// Dispatches data to |ready_callback_|.
void RunReadyCallback();
« no previous file with comments | « device/serial/data_sender.cc ('k') | device/serial/data_sink_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698