diff options
Diffstat (limited to 'net/spdy/spdy_stream.cc')
-rw-r--r-- | net/spdy/spdy_stream.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/spdy/spdy_stream.cc b/net/spdy/spdy_stream.cc index 5808907..00e66e4 100644 --- a/net/spdy/spdy_stream.cc +++ b/net/spdy/spdy_stream.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -381,6 +381,10 @@ void SpdyStream::Cancel() { session_->ResetStream(stream_id_, spdy::CANCEL); } +void SpdyStream::Close() { + session_->CloseStream(stream_id_, net::OK); +} + int SpdyStream::SendRequest(bool has_upload_data) { if (delegate_) delegate_->set_chunk_callback(this); |