Lines Matching refs:Callback
10 #include <base/callback.h>
20 // Callback type for Read.
21 using ReadCallback = base::Callback<void(size_t size, ErrorPtr error)>;
23 // Implementation should return immediately and post callback after
24 // completing operation. Caller guarantees that buffet is alive until callback
28 const ReadCallback& callback) = 0;
36 using WriteCallback = base::Callback<void(ErrorPtr error)>;
38 // Implementation should return immediately and post callback after
40 // of callback is called.
41 // Success callback must be called only after all data is written.
44 const WriteCallback& callback) = 0;