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

Unified Diff: trunk/src/net/spdy/spdy_stream_test_util.cc

Issue 13996009: Revert 194560 "[SPDY] Replace SpdyIOBuffer with new SpdyBuffer c..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | « trunk/src/net/spdy/spdy_stream_test_util.h ('k') | trunk/src/net/spdy/spdy_websocket_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/spdy/spdy_stream_test_util.cc
===================================================================
--- trunk/src/net/spdy/spdy_stream_test_util.cc (revision 194561)
+++ trunk/src/net/spdy/spdy_stream_test_util.cc (working copy)
@@ -37,7 +37,7 @@
void ClosingDelegate::OnHeadersSent() {}
-int ClosingDelegate::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
+int ClosingDelegate::OnDataReceived(const char* data, int length) {
return OK;
}
@@ -77,11 +77,8 @@
headers_sent_++;
}
-int StreamDelegateBase::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
- if (buffer) {
- received_data_ += std::string(buffer->GetRemainingData(),
- buffer->GetRemainingSize());
- }
+int StreamDelegateBase::OnDataReceived(const char* buffer, int bytes) {
+ received_data_ += std::string(buffer, bytes);
return OK;
}
« no previous file with comments | « trunk/src/net/spdy/spdy_stream_test_util.h ('k') | trunk/src/net/spdy/spdy_websocket_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698