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

Side by Side Diff: device/serial/data_stream.mojom

Issue 698883005: Update mojo sdk to rev cfc99316100efdfa7d53d83f9e07f1d4d3765c21 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/battery/battery_status.mojom ('k') | device/serial/data_stream_serialization.mojom » ('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 module device.serial { 5 module device.serial;
6 6
7 [Client=DataSourceClient] 7 [Client=DataSourceClient]
8 interface DataSource { 8 interface DataSource {
9 // Initializes this DataSource with the amount of data its client will 9 // Initializes this DataSource with the amount of data its client will
10 // buffer. 10 // buffer.
11 Init(uint32 buffer_size); 11 Init(uint32 buffer_size);
12 12
13 // Resumes sending data after it has been stopped due to an error. 13 // Resumes sending data after it has been stopped due to an error.
14 Resume(); 14 Resume();
15 15
(...skipping 28 matching lines...) Expand all
44 interface DataSinkClient { 44 interface DataSinkClient {
45 // Reports that the sink has successfully received |bytes_sent| bytes of data. 45 // Reports that the sink has successfully received |bytes_sent| bytes of data.
46 ReportBytesSent(uint32 bytes_sent); 46 ReportBytesSent(uint32 bytes_sent);
47 47
48 // Reports that the sink has received |bytes_sent| bytes of data (possibly 0) 48 // Reports that the sink has received |bytes_sent| bytes of data (possibly 0)
49 // and encountered an error: |error|. Any OnData messages received by the 49 // and encountered an error: |error|. Any OnData messages received by the
50 // DataSink before the response will be discarded. The client should respond 50 // DataSink before the response will be discarded. The client should respond
51 // when it is ready to resume sending data. 51 // when it is ready to resume sending data.
52 ReportBytesSentAndError(uint32 bytes_sent, int32 error) => (); 52 ReportBytesSentAndError(uint32 bytes_sent, int32 error) => ();
53 }; 53 };
54
55 }
OLDNEW
« no previous file with comments | « device/battery/battery_status.mojom ('k') | device/serial/data_stream_serialization.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698