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/ssl_client_socket_pool.h" | 5 #include "net/socket/ssl_client_socket_pool.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/values.h" | 9 #include "base/values.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 bool is_google = host == "google.com" || | 340 bool is_google = host == "google.com" || |
341 host.rfind(".google.com") == host.size() - 11; | 341 host.rfind(".google.com") == host.size() - 11; |
342 if (is_google) { | 342 if (is_google) { |
343 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_Google", | 343 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_Google", |
344 connect_duration, | 344 connect_duration, |
345 base::TimeDelta::FromMilliseconds(1), | 345 base::TimeDelta::FromMilliseconds(1), |
346 base::TimeDelta::FromMinutes(10), | 346 base::TimeDelta::FromMinutes(10), |
347 100); | 347 100); |
348 } | 348 } |
349 | 349 |
350 static const bool false_start_trial = | 350 static bool false_start_trial( |
351 base::FieldTrialList::TrialExists("SSLFalseStart"); | 351 base::FieldTrialList::Find("SSLFalseStart") && |
| 352 !base::FieldTrialList::Find("SSLFalseStart")->group_name().empty()); |
352 if (false_start_trial) { | 353 if (false_start_trial) { |
353 UMA_HISTOGRAM_CUSTOM_TIMES(base::FieldTrial::MakeName( | 354 UMA_HISTOGRAM_CUSTOM_TIMES(base::FieldTrial::MakeName( |
354 "Net.SSL_Connection_Latency", | 355 "Net.SSL_Connection_Latency", |
355 "SSLFalseStart"), | 356 "SSLFalseStart"), |
356 connect_duration, | 357 connect_duration, |
357 base::TimeDelta::FromMilliseconds(1), | 358 base::TimeDelta::FromMilliseconds(1), |
358 base::TimeDelta::FromMinutes(10), | 359 base::TimeDelta::FromMinutes(10), |
359 100); | 360 100); |
360 } | 361 } |
361 } | 362 } |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 | 573 |
573 ClientSocketPoolHistograms* SSLClientSocketPool::histograms() const { | 574 ClientSocketPoolHistograms* SSLClientSocketPool::histograms() const { |
574 return base_.histograms(); | 575 return base_.histograms(); |
575 } | 576 } |
576 | 577 |
577 void SSLClientSocketPool::OnSSLConfigChanged() { | 578 void SSLClientSocketPool::OnSSLConfigChanged() { |
578 Flush(); | 579 Flush(); |
579 } | 580 } |
580 | 581 |
581 } // namespace net | 582 } // namespace net |
OLD | NEW |