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

Unified Diff: net/socket/socket_bio_adapter.cc

Issue 2541093003: Instrument SSL sockets using MemoryDumpProvider (Closed)
Patch Set: Fix flaky test Created 4 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 | « net/socket/socket_bio_adapter.h ('k') | net/socket/ssl_client_socket_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_bio_adapter.cc
diff --git a/net/socket/socket_bio_adapter.cc b/net/socket/socket_bio_adapter.cc
index 1241bae6f90a4412d8b9c4c0e455d8704ad67c98..0d75e68ec85890a2def5983dfdb1a4332a8d81e3 100644
--- a/net/socket/socket_bio_adapter.cc
+++ b/net/socket/socket_bio_adapter.cc
@@ -53,6 +53,16 @@ bool SocketBIOAdapter::HasPendingReadData() {
return read_result_ > 0;
}
+size_t SocketBIOAdapter::GetAllocationSize() const {
+ size_t buffer_size = 0;
+ if (read_buffer_)
+ buffer_size += read_buffer_capacity_;
+
+ if (write_buffer_)
+ buffer_size += write_buffer_capacity_;
+ return buffer_size;
+}
+
int SocketBIOAdapter::BIORead(char* out, int len) {
if (len <= 0)
return len;
« no previous file with comments | « net/socket/socket_bio_adapter.h ('k') | net/socket/ssl_client_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698