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

Unified Diff: net/socket/client_socket_pool_base.h

Issue 11428150: LoadTiming implementation in net, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Try upload again 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
Index: net/socket/client_socket_pool_base.h
===================================================================
--- net/socket/client_socket_pool_base.h (revision 172981)
+++ net/socket/client_socket_pool_base.h (working copy)
@@ -44,6 +44,7 @@
#include "net/base/network_change_notifier.h"
#include "net/base/request_priority.h"
#include "net/socket/client_socket_pool.h"
+#include "net/socket/connect_timing.h"
#include "net/socket/stream_socket.h"
namespace net {
@@ -104,6 +105,8 @@
// additional error state to the ClientSocketHandle (post late-binding).
virtual void GetAdditionalErrorState(ClientSocketHandle* handle) {}
+ ConnectTiming& connect_timing() { return connect_timing_; }
eroman 2012/12/14 04:08:35 Please make it return a const-reference instead. I
mmenke 2012/12/14 13:36:12 Done.
+
const BoundNetLog& net_log() const { return net_log_; }
protected:
@@ -131,6 +134,9 @@
// A ConnectJob is idle until Connect() has been called.
bool idle_;
+ // Connection establishment timing information.
+ ConnectTiming connect_timing_;
+
DISALLOW_COPY_AND_ASSIGN(ConnectJob);
};
@@ -493,6 +499,7 @@
// Assigns |socket| to |handle| and updates |group|'s counters appropriately.
void HandOutSocket(StreamSocket* socket,
bool reused,
+ const ConnectTiming& connect_timing,
ClientSocketHandle* handle,
base::TimeDelta time_idle,
Group* group,

Powered by Google App Engine
This is Rietveld 408576698