summaryrefslogtreecommitdiffstats
path: root/net/socket/buffered_write_stream_socket.cc
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 16:16:26 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 16:16:26 +0000
commit33661e48840aaf44b3efe090b3e947ef83f67a0a (patch)
tree68f71046efc5e025e92ec7df6139c0738d47822d /net/socket/buffered_write_stream_socket.cc
parent10abb583615dd307782034fabadcc0555c12fcd7 (diff)
downloadchromium_src-33661e48840aaf44b3efe090b3e947ef83f67a0a.zip
chromium_src-33661e48840aaf44b3efe090b3e947ef83f67a0a.tar.gz
chromium_src-33661e48840aaf44b3efe090b3e947ef83f67a0a.tar.bz2
Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses.
BUG=120890 Review URL: https://chromiumcodereview.appspot.com/9958028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/buffered_write_stream_socket.cc')
-rw-r--r--net/socket/buffered_write_stream_socket.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/socket/buffered_write_stream_socket.cc b/net/socket/buffered_write_stream_socket.cc
index 94c6d57..028dfde 100644
--- a/net/socket/buffered_write_stream_socket.cc
+++ b/net/socket/buffered_write_stream_socket.cc
@@ -119,6 +119,10 @@ base::TimeDelta BufferedWriteStreamSocket::GetConnectTimeMicros() const {
return wrapped_socket_->GetConnectTimeMicros();
}
+NextProto BufferedWriteStreamSocket::GetNegotiatedProtocol() const {
+ return wrapped_socket_->GetNegotiatedProtocol();
+}
+
void BufferedWriteStreamSocket::DoDelayedWrite() {
int result = wrapped_socket_->Write(
io_buffer_, io_buffer_->RemainingCapacity(),