| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 false, // has_user_gesture | 83 false, // has_user_gesture |
| 84 false, // enable load timing | 84 false, // enable load timing |
| 85 false, // enable upload progress | 85 false, // enable upload progress |
| 86 false, // do_not_prompt_for_login | 86 false, // do_not_prompt_for_login |
| 87 blink::WebReferrerPolicyDefault, // referrer_policy | 87 blink::WebReferrerPolicyDefault, // referrer_policy |
| 88 blink::WebPageVisibilityStateVisible, // visibility_state | 88 blink::WebPageVisibilityStateVisible, // visibility_state |
| 89 resource_context_.get(), // context | 89 resource_context_.get(), // context |
| 90 true, // report_raw_headers | 90 true, // report_raw_headers |
| 91 true, // is_async | 91 true, // is_async |
| 92 PREVIEWS_OFF, // previews_state | 92 PREVIEWS_OFF, // previews_state |
| 93 std::string(), // original_headers | |
| 94 nullptr, // body | 93 nullptr, // body |
| 95 false); // initiated_in_secure_context | 94 false); // initiated_in_secure_context |
| 96 info->AssociateWithRequest(request_.get()); | 95 info->AssociateWithRequest(request_.get()); |
| 97 std::string method = "GET"; | 96 std::string method = "GET"; |
| 98 GURL url(kDefaultURL); | 97 GURL url(kDefaultURL); |
| 99 request_->net_log().BeginEvent( | 98 request_->net_log().BeginEvent( |
| 100 net::NetLogEventType::URL_REQUEST_START_JOB, | 99 net::NetLogEventType::URL_REQUEST_START_JOB, |
| 101 base::Bind(&net::NetLogURLRequestStartCallback, &url, &method, 0, -1)); | 100 base::Bind(&net::NetLogURLRequestStartCallback, &url, &method, 0, -1)); |
| 102 } | 101 } |
| 103 | 102 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 request_headers[header] = value; | 170 request_headers[header] = value; |
| 172 request_->net_log().AddEvent( | 171 request_->net_log().AddEvent( |
| 173 net::NetLogEventType::HTTP_TRANSACTION_QUIC_SEND_REQUEST_HEADERS, | 172 net::NetLogEventType::HTTP_TRANSACTION_QUIC_SEND_REQUEST_HEADERS, |
| 174 base::Bind(&QuicRequestCallback, 1, &request_headers, | 173 base::Bind(&QuicRequestCallback, 1, &request_headers, |
| 175 net::DEFAULT_PRIORITY)); | 174 net::DEFAULT_PRIORITY)); |
| 176 | 175 |
| 177 VerifyHeaderValue(header, value); | 176 VerifyHeaderValue(header, value); |
| 178 } | 177 } |
| 179 | 178 |
| 180 } // namespace content | 179 } // namespace content |
| OLD | NEW |