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

Unified Diff: mojo/shell/local_fetcher.cc

Issue 1129143005: Introduce Http{Request,Response} mojom structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « mojo/services/network/url_loader_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/local_fetcher.cc
diff --git a/mojo/shell/local_fetcher.cc b/mojo/shell/local_fetcher.cc
index 48444839516895d843dcd76885dbae157789a571..ff7f7d4e8b2fe3024a1b150a0dfefc5905761f8a 100644
--- a/mojo/shell/local_fetcher.cc
+++ b/mojo/shell/local_fetcher.cc
@@ -53,8 +53,8 @@ URLResponsePtr LocalFetcher::AsURLResponse(base::TaskRunner* task_runner,
response->body = data_pipe.consumer_handle.Pass();
int64 file_size;
if (base::GetFileSize(path_, &file_size)) {
- response->headers = Array<HTTPHeaderPtr>(1);
- HTTPHeaderPtr header = HTTPHeader::New();
+ response->headers = Array<HttpHeaderPtr>(1);
+ HttpHeaderPtr header = HttpHeader::New();
header->name = "Content-Length";
header->value = base::StringPrintf("%" PRId64, file_size);
response->headers[0] = header.Pass();
« no previous file with comments | « mojo/services/network/url_loader_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698