| 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 "chrome/browser/net/http_pipelining_compatibility_client.h" | 5 #include "chrome/browser/net/http_pipelining_compatibility_client.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/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "net/http/http_version.h" | 21 #include "net/http/http_version.h" |
| 22 #include "net/proxy/proxy_config.h" | 22 #include "net/proxy/proxy_config.h" |
| 23 #include "net/proxy/proxy_service.h" | 23 #include "net/proxy/proxy_service.h" |
| 24 #include "net/url_request/url_request_context.h" | 24 #include "net/url_request/url_request_context.h" |
| 25 #include "net/url_request/url_request_context_getter.h" | 25 #include "net/url_request/url_request_context_getter.h" |
| 26 | 26 |
| 27 // This is included because the CACHE_HISTOGRAM_* macros allow dynamic metric | 27 // This is included because the CACHE_HISTOGRAM_* macros allow dynamic metric |
| 28 // names. | 28 // names. |
| 29 // TODO(gavinp): Clean up this dependency by moving the needed functionality | 29 // TODO(gavinp): Clean up this dependency by moving the needed functionality |
| 30 // into base/. | 30 // into base/. |
| 31 #include "net/disk_cache/histogram_macros.h" | 31 #include "net/disk_cache/blockfile/histogram_macros.h" |
| 32 | 32 |
| 33 namespace chrome_browser_net { | 33 namespace chrome_browser_net { |
| 34 | 34 |
| 35 static const int kCanaryRequestId = 999; | 35 static const int kCanaryRequestId = 999; |
| 36 | 36 |
| 37 namespace { | 37 namespace { |
| 38 | 38 |
| 39 // There is one Request per RequestInfo passed in to Start() above. | 39 // There is one Request per RequestInfo passed in to Start() above. |
| 40 class Request : public internal::PipelineTestRequest, | 40 class Request : public internal::PipelineTestRequest, |
| 41 public net::URLRequest::Delegate { | 41 public net::URLRequest::Delegate { |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 533 |
| 534 content::BrowserThread::PostTask( | 534 content::BrowserThread::PostTask( |
| 535 content::BrowserThread::IO, | 535 content::BrowserThread::IO, |
| 536 FROM_HERE, | 536 FROM_HERE, |
| 537 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread, | 537 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread, |
| 538 pipeline_test_server, | 538 pipeline_test_server, |
| 539 io_thread)); | 539 io_thread)); |
| 540 } | 540 } |
| 541 | 541 |
| 542 } // namespace chrome_browser_net | 542 } // namespace chrome_browser_net |
| OLD | NEW |