Index: net/socket/socket_bio_adapter.h |
diff --git a/net/socket/socket_bio_adapter.h b/net/socket/socket_bio_adapter.h |
index d718721683aaa3f8e21daa86baf7b2730b8fc27f..235917a0891e94dbd9c0c278ea0ef879455ad2c7 100644 |
--- a/net/socket/socket_bio_adapter.h |
+++ b/net/socket/socket_bio_adapter.h |
@@ -78,6 +78,9 @@ class NET_EXPORT_PRIVATE SocketBIOAdapter { |
// but not yet consumed by the BIO. |
bool HasPendingReadData(); |
+ // Returns the allocation size estimate in bytes. |
+ size_t GetAllocationSize() const; |
+ |
private: |
int BIORead(char* out, int len); |
void HandleSocketReadResult(int result); |