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" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "chrome/browser/io_thread.h" | 12 #include "chrome/browser/io_thread.h" |
13 #include "chrome/common/chrome_version_info.h" | 13 #include "chrome/common/chrome_version_info.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "net/base/load_flags.h" | 15 #include "net/base/load_flags.h" |
16 #include "net/base/network_change_notifier.h" | 16 #include "net/base/network_change_notifier.h" |
17 #include "net/base/request_priority.h" | 17 #include "net/base/request_priority.h" |
18 #include "net/http/http_network_layer.h" | 18 #include "net/http/http_network_layer.h" |
19 #include "net/http/http_network_session.h" | 19 #include "net/http/http_network_session.h" |
20 #include "net/http/http_response_headers.h" | 20 #include "net/http/http_response_headers.h" |
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 | |
rvargas (doing something else)
2014/02/11 03:21:28
I guess this belongs to another CL
gavinp
2014/02/11 16:37:18
Done.
| |
28 // This is included because the CACHE_HISTOGRAM_* macros allow dynamic metric | 27 // This is included because the CACHE_HISTOGRAM_* macros allow dynamic metric |
29 // names. | 28 // names. |
30 // TODO(gavinp,rvargas): Clean up this dependency by moving the needed | 29 // TODO(gavinp,rvargas): Clean up this dependency by moving the needed |
31 // functionality into base/. | 30 // functionality into base/. |
32 #include "net/disk_cache/histogram_macros.h" | 31 #include "net/disk_cache/histogram_macros.h" |
33 | 32 |
34 namespace chrome_browser_net { | 33 namespace chrome_browser_net { |
35 | 34 |
36 static const int kCanaryRequestId = 999; | 35 static const int kCanaryRequestId = 999; |
37 | 36 |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
534 | 533 |
535 content::BrowserThread::PostTask( | 534 content::BrowserThread::PostTask( |
536 content::BrowserThread::IO, | 535 content::BrowserThread::IO, |
537 FROM_HERE, | 536 FROM_HERE, |
538 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread, | 537 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread, |
539 pipeline_test_server, | 538 pipeline_test_server, |
540 io_thread)); | 539 io_thread)); |
541 } | 540 } |
542 | 541 |
543 } // namespace chrome_browser_net | 542 } // namespace chrome_browser_net |
OLD | NEW |