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

Unified Diff: net/base/nss_memio.h

Issue 11633021: When using NSS, only schedule transport socket reads when the transport buffer is empty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | net/base/nss_memio.c » ('j') | net/base/nss_memio.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/nss_memio.h
diff --git a/net/base/nss_memio.h b/net/base/nss_memio.h
index 7d889ebcb5ec8200a22a21430d10eb3a5c11eaab..e8db27c64002e04efffbc6c0e6ef79af78f7736f 100644
--- a/net/base/nss_memio.h
+++ b/net/base/nss_memio.h
@@ -50,6 +50,12 @@ void memio_SetPeerName(PRFileDesc *fd, const PRNetAddr *peername);
*/
memio_Private *memio_GetSecret(PRFileDesc *fd);
+/* Ask memio how many bytes were requested by a higher layer during the last
+ * read request that could not be satisfied (due to the buffer being empty).
+ * Returns 0 if there was no unsatisfied read request.
+ */
+int memio_GetReadRequest(memio_Private *secret);
wtc 2012/12/20 02:41:22 The specification of this function is not very cle
Ryan Sleevi 2012/12/20 02:55:58 While yes, we only need a bool, I typed it as an i
+
/* Ask memio where to put bytes from the network, and how many it can handle.
* Returns bytes available to write, or 0 if none available.
* Puts current buffer position into *buf.
« no previous file with comments | « no previous file | net/base/nss_memio.c » ('j') | net/base/nss_memio.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698