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

Side by Side Diff: device/serial/data_source_sender.h

Issue 846443006: Include Mojo SDK/EDK via fully-qualified paths in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include to satisfy checkdeps Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « device/serial/data_sink_unittest.cc ('k') | device/serial/data_source_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ 5 #ifndef DEVICE_SERIAL_DATA_SOURCE_SENDER_H_
6 #define DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ 6 #define DEVICE_SERIAL_DATA_SOURCE_SENDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "device/serial/buffer.h" 13 #include "device/serial/buffer.h"
14 #include "device/serial/data_stream.mojom.h" 14 #include "device/serial/data_stream.mojom.h"
15 #include "mojo/public/cpp/system/data_pipe.h" 15 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h"
16 16
17 namespace device { 17 namespace device {
18 18
19 // A DataSourceSender is an interface between a source of data and a 19 // A DataSourceSender is an interface between a source of data and a
20 // DataSourceClient. 20 // DataSourceClient.
21 class DataSourceSender : public base::RefCounted<DataSourceSender>, 21 class DataSourceSender : public base::RefCounted<DataSourceSender>,
22 public mojo::InterfaceImpl<serial::DataSource> { 22 public mojo::InterfaceImpl<serial::DataSource> {
23 public: 23 public:
24 typedef base::Callback<void(scoped_ptr<WritableBuffer>)> ReadyCallback; 24 typedef base::Callback<void(scoped_ptr<WritableBuffer>)> ReadyCallback;
25 typedef base::Callback<void()> ErrorCallback; 25 typedef base::Callback<void()> ErrorCallback;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool shut_down_; 84 bool shut_down_;
85 85
86 base::WeakPtrFactory<DataSourceSender> weak_factory_; 86 base::WeakPtrFactory<DataSourceSender> weak_factory_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(DataSourceSender); 88 DISALLOW_COPY_AND_ASSIGN(DataSourceSender);
89 }; 89 };
90 90
91 } // namespace device 91 } // namespace device
92 92
93 #endif // DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ 93 #endif // DEVICE_SERIAL_DATA_SOURCE_SENDER_H_
OLDNEW
« no previous file with comments | « device/serial/data_sink_unittest.cc ('k') | device/serial/data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698