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