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

Unified Diff: net/socket/client_socket_handle.h

Issue 2542433002: Remove unused fields from ClientSocketHandle. (Closed)
Patch Set: Created 4 years, 1 month 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/socket/client_socket_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_handle.h
diff --git a/net/socket/client_socket_handle.h b/net/socket/client_socket_handle.h
index cf9e8d022eebdcb41c0e477007d431bd79f3f8f3..51ef666b739421f26513b2c8df13464cb34726e7 100644
--- a/net/socket/client_socket_handle.h
+++ b/net/socket/client_socket_handle.h
@@ -114,12 +114,6 @@ class NET_EXPORT ClientSocketHandle {
// Returns true when Init() has completed successfully.
bool is_initialized() const { return is_initialized_; }
- // Returns the time tick when Init() was called.
- base::TimeTicks init_time() const { return init_time_; }
-
- // Returns the time between Init() and when is_initialized() becomes true.
- base::TimeDelta setup_time() const { return setup_time_; }
-
// Sets the portion of LoadTimingInfo related to connection establishment, and
// the socket id. |is_reused| is needed because the handle may not have full
// reuse information. |load_timing_info| must have all default values when
@@ -217,8 +211,6 @@ class NET_EXPORT ClientSocketHandle {
HttpResponseInfo ssl_error_response_info_;
std::unique_ptr<ClientSocketHandle> pending_http_proxy_connection_;
std::vector<ConnectionAttempt> connection_attempts_;
- base::TimeTicks init_time_;
- base::TimeDelta setup_time_;
NetLogSource requesting_source_;
@@ -245,7 +237,6 @@ int ClientSocketHandle::Init(
ResetErrorState();
pool_ = pool;
group_name_ = group_name;
- init_time_ = base::TimeTicks::Now();
int rv = pool_->RequestSocket(group_name, &socket_params, priority,
respect_limits, this, callback_, net_log);
if (rv == ERR_IO_PENDING) {
« no previous file with comments | « no previous file | net/socket/client_socket_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698