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

Side by Side Diff: net/socket/stream_socket.cc

Issue 1096203006: Collect all ConnectionAttempts from both sockets in TransportConnectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: Document why Do*ConnectComplete don't delete other socket Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/stream_socket.h" 5 #include "net/socket/stream_socket.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 else 91 else
92 result = 0; // Never used, and not really connected. 92 result = 0; // Never used, and not really connected.
93 93
94 if (omnibox_speculation_) 94 if (omnibox_speculation_)
95 result += 3; 95 result += 3;
96 else if (subresource_speculation_) 96 else if (subresource_speculation_)
97 result += 6; 97 result += 6;
98 UMA_HISTOGRAM_ENUMERATION("Net.PreconnectUtilization2", result, 9); 98 UMA_HISTOGRAM_ENUMERATION("Net.PreconnectUtilization2", result, 9);
99 } 99 }
100 100
101 StreamSocket::~StreamSocket() {
102 }
103
104 void StreamSocket::GetConnectionAttempts(ConnectionAttempts* out) const {
105 out->clear();
106 }
107
108 void StreamSocket::ClearConnectionAttempts() {
109 }
110
111 void StreamSocket::AddConnectionAttempts(const ConnectionAttempts& attempts) {
112 NOTIMPLEMENTED();
113 }
114
101 } // namespace net 115 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698