| Index: content/test/test_navigation_url_loader.h
|
| diff --git a/content/test/test_navigation_url_loader.h b/content/test/test_navigation_url_loader.h
|
| index 07cacb3d22415a6c5c7fdbf3afc3631a747b6d84..8edcdfc7aac20b99895def177b61545cc274b43a 100644
|
| --- a/content/test/test_navigation_url_loader.h
|
| +++ b/content/test/test_navigation_url_loader.h
|
| @@ -11,20 +11,21 @@
|
| #include "content/browser/frame_host/navigation_request_info.h"
|
| #include "content/browser/loader/navigation_url_loader.h"
|
| #include "content/common/navigation_params.h"
|
|
|
| namespace net {
|
| struct RedirectInfo;
|
| }
|
|
|
| namespace content {
|
|
|
| +class NavigationData;
|
| class NavigationURLLoaderDelegate;
|
| class StreamHandle;
|
| struct ResourceResponse;
|
|
|
| // PlzNavigate
|
| // Test implementation of NavigationURLLoader to simulate the network stack
|
| // response.
|
| class TestNavigationURLLoader
|
| : public NavigationURLLoader,
|
| public base::SupportsWeakPtr<TestNavigationURLLoader> {
|
| @@ -38,21 +39,22 @@ class TestNavigationURLLoader
|
|
|
| NavigationRequestInfo* request_info() const { return request_info_.get(); }
|
|
|
| void SimulateServerRedirect(const GURL& redirect_url);
|
|
|
| void SimulateError(int error_code);
|
|
|
| void CallOnRequestRedirected(const net::RedirectInfo& redirect_info,
|
| const scoped_refptr<ResourceResponse>& response);
|
| void CallOnResponseStarted(const scoped_refptr<ResourceResponse>& response,
|
| - std::unique_ptr<StreamHandle> body);
|
| + std::unique_ptr<StreamHandle> body,
|
| + std::unique_ptr<NavigationData> navigation_data);
|
|
|
| int redirect_count() { return redirect_count_; }
|
|
|
| bool response_proceeded() { return response_proceeded_; }
|
|
|
| private:
|
| ~TestNavigationURLLoader() override;
|
|
|
| std::unique_ptr<NavigationRequestInfo> request_info_;
|
| NavigationURLLoaderDelegate* delegate_;
|
|
|