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

Unified Diff: net/base/io_buffer.h

Issue 6800009: Attn: Mike Belshe Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 9 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
Index: net/base/io_buffer.h
===================================================================
--- net/base/io_buffer.h (revision 80449)
+++ net/base/io_buffer.h (working copy)
@@ -23,6 +23,11 @@
char* data() { return data_; }
+ virtual uint16 sctp_stream_id() { return sctp_stream_id_; }
+ virtual void set_sctp_stream_id(int sctp_stream_id) {
+ sctp_stream_id_ = sctp_stream_id;
Mike Belshe 2011/04/06 18:32:53 lets try to make a derived IOBuffer work instead.
+ }
+
protected:
friend class base::RefCountedThreadSafe<IOBuffer>;
@@ -33,6 +38,7 @@
virtual ~IOBuffer();
char* data_;
+ uint16 sctp_stream_id_;
};
// This version stores the size of the buffer so that the creator of the object
@@ -87,6 +93,13 @@
int size() const { return size_; }
+ void set_sctp_stream_id(uint32 stream_id) {
+ base_->set_sctp_stream_id(stream_id);
+ }
+ uint16 sctp_stream_id() {
+ return base_->sctp_stream_id();
+ }
+
private:
virtual ~DrainableIOBuffer();

Powered by Google App Engine
This is Rietveld 408576698