| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 "content/test/test_navigation_url_loader.h" | 5 #include "content/test/test_navigation_url_loader.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "content/browser/loader/navigation_url_loader_delegate.h" | 9 #include "content/browser/loader/navigation_url_loader_delegate.h" |
| 10 #include "content/common/url_loader_factory.mojom.h" | |
| 11 #include "content/public/browser/global_request_id.h" | 10 #include "content/public/browser/global_request_id.h" |
| 12 #include "content/public/browser/navigation_data.h" | 11 #include "content/public/browser/navigation_data.h" |
| 13 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
| 14 #include "content/public/browser/ssl_status.h" | 13 #include "content/public/browser/ssl_status.h" |
| 15 #include "content/public/browser/stream_handle.h" | 14 #include "content/public/browser/stream_handle.h" |
| 16 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 17 #include "content/public/common/browser_side_navigation_policy.h" | 16 #include "content/public/common/browser_side_navigation_policy.h" |
| 18 #include "content/public/common/resource_response.h" | 17 #include "content/public/common/resource_response.h" |
| 18 #include "content/public/common/url_loader_factory.mojom.h" |
| 19 #include "net/url_request/redirect_info.h" | 19 #include "net/url_request/redirect_info.h" |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 TestNavigationURLLoader::TestNavigationURLLoader( | 23 TestNavigationURLLoader::TestNavigationURLLoader( |
| 24 std::unique_ptr<NavigationRequestInfo> request_info, | 24 std::unique_ptr<NavigationRequestInfo> request_info, |
| 25 NavigationURLLoaderDelegate* delegate) | 25 NavigationURLLoaderDelegate* delegate) |
| 26 : request_info_(std::move(request_info)), | 26 : request_info_(std::move(request_info)), |
| 27 delegate_(delegate), | 27 delegate_(delegate), |
| 28 redirect_count_(0), | 28 redirect_count_(0), |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 GlobalRequestID global_id(child_id, ++request_id); | 72 GlobalRequestID global_id(child_id, ++request_id); |
| 73 delegate_->OnResponseStarted( | 73 delegate_->OnResponseStarted( |
| 74 response, std::move(body), mojo::ScopedDataPipeConsumerHandle(), | 74 response, std::move(body), mojo::ScopedDataPipeConsumerHandle(), |
| 75 SSLStatus(), std::move(navigation_data), global_id, false, false, | 75 SSLStatus(), std::move(navigation_data), global_id, false, false, |
| 76 mojom::URLLoaderFactoryPtrInfo()); | 76 mojom::URLLoaderFactoryPtrInfo()); |
| 77 } | 77 } |
| 78 | 78 |
| 79 TestNavigationURLLoader::~TestNavigationURLLoader() {} | 79 TestNavigationURLLoader::~TestNavigationURLLoader() {} |
| 80 | 80 |
| 81 } // namespace content | 81 } // namespace content |
| OLD | NEW |