| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 | 1013 |
| 1014 if (!reused_socket) { | 1014 if (!reused_socket) { |
| 1015 UMA_HISTOGRAM_CUSTOM_TIMES( | 1015 UMA_HISTOGRAM_CUSTOM_TIMES( |
| 1016 base::FieldTrial::MakeName("Net.Transaction_Connected_New_b", | 1016 base::FieldTrial::MakeName("Net.Transaction_Connected_New_b", |
| 1017 "SpdyImpact"), | 1017 "SpdyImpact"), |
| 1018 total_duration, base::TimeDelta::FromMilliseconds(1), | 1018 total_duration, base::TimeDelta::FromMilliseconds(1), |
| 1019 base::TimeDelta::FromMinutes(10), 100); | 1019 base::TimeDelta::FromMinutes(10), 100); |
| 1020 } | 1020 } |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 // Currently, non-zero priority requests are frame or sub-frame resource | 1023 // Currently, non-HIGHEST priority requests are frame or sub-frame resource |
| 1024 // types. This will change when we also prioritize certain subresources like | 1024 // types. This will change when we also prioritize certain subresources like |
| 1025 // css, js, etc. | 1025 // css, js, etc. |
| 1026 if (request_->priority) { | 1026 if (request_->priority != HIGHEST) { |
| 1027 UMA_HISTOGRAM_CUSTOM_TIMES( | 1027 UMA_HISTOGRAM_CUSTOM_TIMES( |
| 1028 "Net.Priority_High_Latency_b", | 1028 "Net.Priority_High_Latency_b", |
| 1029 total_duration, | 1029 total_duration, |
| 1030 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), | 1030 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), |
| 1031 100); | 1031 100); |
| 1032 } else { | 1032 } else { |
| 1033 UMA_HISTOGRAM_CUSTOM_TIMES( | 1033 UMA_HISTOGRAM_CUSTOM_TIMES( |
| 1034 "Net.Priority_Low_Latency_b", | 1034 "Net.Priority_Low_Latency_b", |
| 1035 total_duration, | 1035 total_duration, |
| 1036 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), | 1036 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1371 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1371 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
| 1372 state); | 1372 state); |
| 1373 break; | 1373 break; |
| 1374 } | 1374 } |
| 1375 return description; | 1375 return description; |
| 1376 } | 1376 } |
| 1377 | 1377 |
| 1378 #undef STATE_CASE | 1378 #undef STATE_CASE |
| 1379 | 1379 |
| 1380 } // namespace net | 1380 } // namespace net |
| OLD | NEW |