Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: content/child/web_url_loader_impl.h

Issue 2797443005: PlzNavigate data pipe
Patch Set: cleanup Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.h
diff --git a/content/child/web_url_loader_impl.h b/content/child/web_url_loader_impl.h
index 676f2a6f2642b15e739b50e5c871f7fe86a42e5d..a45f0829d028a99d8e062b0dff23aac9eeaa9161 100644
--- a/content/child/web_url_loader_impl.h
+++ b/content/child/web_url_loader_impl.h
@@ -10,6 +10,7 @@
#include "content/common/content_export.h"
#include "content/common/url_loader_factory.mojom.h"
#include "content/public/common/resource_response.h"
+#include "mojo/public/cpp/system/data_pipe.h"
#include "net/url_request/redirect_info.h"
#include "third_party/WebKit/public/platform/WebURLLoader.h"
#include "url/gurl.h"
@@ -24,9 +25,7 @@ struct CONTENT_EXPORT StreamOverrideParameters {
public:
StreamOverrideParameters();
~StreamOverrideParameters();
- // TODO(clamy): The browser should be made aware on destruction of this struct
- // that it can release its associated stream handle.
- GURL stream_url;
+ mojo::ScopedDataPipeConsumerHandle consumer_handle;
ResourceResponseHead response;
std::vector<GURL> redirects;
std::vector<ResourceResponseInfo> redirect_responses;
@@ -35,6 +34,8 @@ struct CONTENT_EXPORT StreamOverrideParameters {
// The delta between the actual transfer size and the one reported by the
// AsyncResourceLoader due to not having the ResourceResponse.
int total_transfer_size_delta;
+
+ int total_transferred = 0;
};
class CONTENT_EXPORT WebURLLoaderImpl
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698