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(); |