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

Unified Diff: net/base/nss_memio.c

Issue 11366155: SSLClientSocket::IsConnected should care for internal buffers (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 11 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 | « net/base/nss_memio.h ('k') | net/data/websocket/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/nss_memio.c
diff --git a/net/base/nss_memio.c b/net/base/nss_memio.c
index 4092c178c7ff1d49330d9232d5f92f055e3f4e2b..bd0471067f4e57e31b39d09889f0caa1bdeef378 100644
--- a/net/base/nss_memio.c
+++ b/net/base/nss_memio.c
@@ -402,6 +402,14 @@ int memio_GetReadParams(memio_Private *secret, char **buf)
return memio_buffer_unused_contiguous(mb);
}
+int memio_GetReadableBufferSize(memio_Private *secret)
+{
+ struct memio_buffer* mb = &((PRFilePrivate *)secret)->readbuf;
+ PR_ASSERT(mb->bufsize);
+
+ return memio_buffer_used_contiguous(mb);
+}
+
void memio_PutReadResult(memio_Private *secret, int bytes_read)
{
struct memio_buffer* mb = &((PRFilePrivate *)secret)->readbuf;
« no previous file with comments | « net/base/nss_memio.h ('k') | net/data/websocket/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698