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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 Request::Request(int request_id, | 86 Request::Request(int request_id, |
87 const std::string& base_url, | 87 const std::string& base_url, |
88 const RequestInfo& info, | 88 const RequestInfo& info, |
89 internal::PipelineTestRequest::Delegate* delegate, | 89 internal::PipelineTestRequest::Delegate* delegate, |
90 net::URLRequestContext* url_request_context) | 90 net::URLRequestContext* url_request_context) |
91 : delegate_(delegate), | 91 : delegate_(delegate), |
92 request_id_(request_id), | 92 request_id_(request_id), |
93 url_request_(url_request_context->CreateRequest(GURL(base_url + | 93 url_request_(url_request_context->CreateRequest(GURL(base_url + |
94 info.filename), | 94 info.filename), |
95 net::DEFAULT_PRIORITY, | 95 net::DEFAULT_PRIORITY, |
96 this)), | 96 this, |
| 97 NULL)), |
97 info_(info), | 98 info_(info), |
98 response_code_(0) { | 99 response_code_(0) { |
99 url_request_->SetLoadFlags(net::LOAD_BYPASS_CACHE | | 100 url_request_->SetLoadFlags(net::LOAD_BYPASS_CACHE | |
100 net::LOAD_DISABLE_CACHE | | 101 net::LOAD_DISABLE_CACHE | |
101 net::LOAD_DO_NOT_SAVE_COOKIES | | 102 net::LOAD_DO_NOT_SAVE_COOKIES | |
102 net::LOAD_DO_NOT_SEND_COOKIES | | 103 net::LOAD_DO_NOT_SEND_COOKIES | |
103 net::LOAD_DO_NOT_PROMPT_FOR_LOGIN | | 104 net::LOAD_DO_NOT_PROMPT_FOR_LOGIN | |
104 net::LOAD_DO_NOT_SEND_AUTH_DATA); | 105 net::LOAD_DO_NOT_SEND_AUTH_DATA); |
105 } | 106 } |
106 | 107 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 | 533 |
533 content::BrowserThread::PostTask( | 534 content::BrowserThread::PostTask( |
534 content::BrowserThread::IO, | 535 content::BrowserThread::IO, |
535 FROM_HERE, | 536 FROM_HERE, |
536 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread, | 537 base::Bind(&CollectPipeliningCapabilityStatsOnIOThread, |
537 pipeline_test_server, | 538 pipeline_test_server, |
538 io_thread)); | 539 io_thread)); |
539 } | 540 } |
540 | 541 |
541 } // namespace chrome_browser_net | 542 } // namespace chrome_browser_net |
OLD | NEW |