Index: content/browser/frame_host/navigation_request.h |
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h |
index 2d9b1c04d3ce19f3688a6693205dfbc33d614248..2a142f151045e4f2be5eea479518c67452c82e67 100644 |
--- a/content/browser/frame_host/navigation_request.h |
+++ b/content/browser/frame_host/navigation_request.h |
@@ -18,6 +18,7 @@ |
#include "content/common/navigation_params.h" |
#include "content/public/browser/navigation_throttle.h" |
#include "content/public/common/previews_state.h" |
+#include "mojo/public/cpp/system/data_pipe.h" |
namespace content { |
@@ -29,7 +30,6 @@ class NavigationURLLoader; |
class NavigationData; |
class ResourceRequestBody; |
class SiteInstanceImpl; |
-class StreamHandle; |
// PlzNavigate |
// A UI thread object that owns a navigation request until it commits. It |
@@ -182,7 +182,7 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate { |
const net::RedirectInfo& redirect_info, |
const scoped_refptr<ResourceResponse>& response) override; |
void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, |
- std::unique_ptr<StreamHandle> body, |
+ mojo::ScopedDataPipeConsumerHandle handle, |
const SSLStatus& ssl_status, |
std::unique_ptr<NavigationData> navigation_data, |
const GlobalRequestID& request_id, |
@@ -249,10 +249,11 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate { |
std::unique_ptr<NavigationHandleImpl> navigation_handle_; |
- // Holds the ResourceResponse and the StreamHandle for the navigation while |
- // the WillProcessResponse checks are performed by the NavigationHandle. |
+ // Holds the ResourceResponse and the DataPipeConsumerHandle for the |
+ // navigation while the WillProcessResponse checks are performed |
+ // by the NavigationHandle. |
scoped_refptr<ResourceResponse> response_; |
- std::unique_ptr<StreamHandle> body_; |
+ mojo::ScopedDataPipeConsumerHandle handle_; |
base::Closure on_start_checks_complete_closure_; |