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