| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "headless/public/util/http_url_fetcher.h" | 5 #include "headless/public/util/http_url_fetcher.h" |
| 6 | 6 |
| 7 #include "net/base/io_buffer.h" | 7 #include "net/base/io_buffer.h" |
| 8 #include "net/cert/cert_status_flags.h" | 8 #include "net/cert/cert_status_flags.h" |
| 9 #include "net/http/http_response_headers.h" | 9 #include "net/http/http_response_headers.h" |
| 10 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 HttpURLFetcher::HttpURLFetcher( | 178 HttpURLFetcher::HttpURLFetcher( |
| 179 const net::URLRequestContext* url_request_context) | 179 const net::URLRequestContext* url_request_context) |
| 180 : url_request_context_(url_request_context) {} | 180 : url_request_context_(url_request_context) {} |
| 181 | 181 |
| 182 HttpURLFetcher::~HttpURLFetcher() {} | 182 HttpURLFetcher::~HttpURLFetcher() {} |
| 183 | 183 |
| 184 void HttpURLFetcher::StartFetch(const GURL& rewritten_url, | 184 void HttpURLFetcher::StartFetch(const GURL& rewritten_url, |
| 185 const std::string& method, | 185 const std::string& method, |
| 186 const net::HttpRequestHeaders& request_headers, | 186 const net::HttpRequestHeaders& request_headers, |
| 187 const std::string& devtools_request_id, |
| 187 ResultListener* result_listener) { | 188 ResultListener* result_listener) { |
| 188 delegate_.reset(new Delegate(rewritten_url, method, request_headers, | 189 delegate_.reset(new Delegate(rewritten_url, method, request_headers, |
| 189 url_request_context_, result_listener)); | 190 url_request_context_, result_listener)); |
| 190 } | 191 } |
| 191 | 192 |
| 192 } // namespace headless | 193 } // namespace headless |
| OLD | NEW |