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

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

Issue 6883102: Add one-time randomization support for FieldTrial, and the ability to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/client_socket_pool_histograms.cc ('k') | net/socket/stream_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
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
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_histograms.cc ('k') | net/socket/stream_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698