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

Unified Diff: net/base/client_socket_handle.h

Issue 99205: Add a histogram to measure the number of idle sockets when a TCP connection is established. (Closed)
Patch Set: Use a const ref (woops!) instead of copying a string. Add comments. Created 11 years, 8 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 | « no previous file | net/base/client_socket_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/client_socket_handle.h
diff --git a/net/base/client_socket_handle.h b/net/base/client_socket_handle.h
index e0d9e73175d3453c6f3a067529bb1bb56e53236c..1328369fcdaeb5bcae331b47c91a014a604322f0 100644
--- a/net/base/client_socket_handle.h
+++ b/net/base/client_socket_handle.h
@@ -62,6 +62,7 @@ class ClientSocketHandle {
bool is_initialized() const { return socket_ != NULL; }
// These may only be used if is_initialized() is true.
+ const std::string& group_name() const { return group_name_; }
ClientSocket* socket() { return socket_->get(); }
ClientSocket* release_socket() { return socket_->release(); }
void set_socket(ClientSocket* s) { socket_->reset(s); }
« no previous file with comments | « no previous file | net/base/client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698