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

Unified Diff: courgette/streams.h

Issue 2827103002: [Courgette] Refactor: Add CourgetteFlow; improve courgette_tool.cc help text. (Closed)
Patch Set: Add virtual destructor to BasicBuffer and its implementations. Created 3 years, 8 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 | « courgette/patcher_x86_32.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/streams.h
diff --git a/courgette/streams.h b/courgette/streams.h
index c23d710fb0fa88a6e21eece4e9721c9335979cc0..fb7204e9e202d47a264cbb992c4f753556ac5c5c 100644
--- a/courgette/streams.h
+++ b/courgette/streams.h
@@ -33,6 +33,15 @@ class SinkStream;
// Maximum number of streams in a stream set.
static const unsigned int kMaxStreams = 10;
+// A simple interface for reading binary data.
+class BasicBuffer {
+ public:
+ BasicBuffer() {}
+ virtual ~BasicBuffer() {}
+ virtual const uint8_t* data() const = 0;
+ virtual size_t length() const = 0;
+};
+
// A SourceStream allows a region of memory to be scanned by a sequence of Read
// operations. The stream does not own the memory.
class SourceStream {
@@ -234,5 +243,6 @@ class SinkStreamSet {
DISALLOW_COPY_AND_ASSIGN(SinkStreamSet);
};
-} // namespace
+} // namespace courgette
+
#endif // COURGETTE_STREAMS_H_
« no previous file with comments | « courgette/patcher_x86_32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698