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

Unified Diff: net/spdy/spdy_io_buffer.cc

Issue 13990005: [SPDY] Replace SpdyIOBuffer with new SpdyBuffer class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
Index: net/spdy/spdy_io_buffer.cc
diff --git a/net/spdy/spdy_io_buffer.cc b/net/spdy/spdy_io_buffer.cc
deleted file mode 100644
index 441b033a57ada88001541bfc22da0af9fac1cd36..0000000000000000000000000000000000000000
--- a/net/spdy/spdy_io_buffer.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/spdy/spdy_io_buffer.h"
-#include "net/spdy/spdy_stream.h"
-
-namespace net {
-
-SpdyIOBuffer::SpdyIOBuffer() {}
-
-SpdyIOBuffer::SpdyIOBuffer(IOBuffer* buffer, int size, SpdyStream* stream)
- : buffer_(new DrainableIOBuffer(buffer, size)), stream_(stream) {}
-
-SpdyIOBuffer::SpdyIOBuffer(const SpdyIOBuffer& rhs) {
- buffer_ = rhs.buffer_;
- stream_ = rhs.stream_;
-}
-
-SpdyIOBuffer::~SpdyIOBuffer() {}
-
-SpdyIOBuffer& SpdyIOBuffer::operator=(const SpdyIOBuffer& rhs) {
- buffer_ = rhs.buffer_;
- stream_ = rhs.stream_;
- return *this;
-}
-
-void SpdyIOBuffer::Swap(SpdyIOBuffer* other) {
- buffer_.swap(other->buffer_);
- stream_.swap(other->stream_);
-}
-
-void SpdyIOBuffer::Release() {
- buffer_ = NULL;
- stream_ = NULL;
-}
-
-} // namespace net

Powered by Google App Engine
This is Rietveld 408576698