OLD | NEW |
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 Loading... |
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 |
101 } // namespace net | 104 } // namespace net |
OLD | NEW |