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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 1594973004: Remove use of void** from HttpResponseHeaders::EnumerateHeaderLines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 std::string(), // referrer_charset 994 std::string(), // referrer_charset
995 std::string(), // suggested_name 995 std::string(), // suggested_name
996 std::string(), // mime_type 996 std::string(), // mime_type
997 std::string())); // default_name 997 std::string())); // default_name
998 998
999 Time time_val; 999 Time time_val;
1000 if (headers->GetLastModifiedValue(&time_val)) 1000 if (headers->GetLastModifiedValue(&time_val))
1001 response->setLastModifiedDate(time_val.ToDoubleT()); 1001 response->setLastModifiedDate(time_val.ToDoubleT());
1002 1002
1003 // Build up the header map. 1003 // Build up the header map.
1004 void* iter = NULL; 1004 size_t iter = 0;
1005 std::string name; 1005 std::string name;
1006 while (headers->EnumerateHeaderLines(&iter, &name, &value)) { 1006 while (headers->EnumerateHeaderLines(&iter, &name, &value)) {
1007 response->addHTTPHeaderField(WebString::fromLatin1(name), 1007 response->addHTTPHeaderField(WebString::fromLatin1(name),
1008 WebString::fromLatin1(value)); 1008 WebString::fromLatin1(value));
1009 } 1009 }
1010 } 1010 }
1011 1011
1012 void WebURLLoaderImpl::PopulateURLRequestForRedirect( 1012 void WebURLLoaderImpl::PopulateURLRequestForRedirect(
1013 const blink::WebURLRequest& request, 1013 const blink::WebURLRequest& request,
1014 const net::RedirectInfo& redirect_info, 1014 const net::RedirectInfo& redirect_info,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 } 1092 }
1093 1093
1094 void WebURLLoaderImpl::setLoadingTaskRunner( 1094 void WebURLLoaderImpl::setLoadingTaskRunner(
1095 blink::WebTaskRunner* loading_task_runner) { 1095 blink::WebTaskRunner* loading_task_runner) {
1096 // There's no guarantee on the lifetime of |loading_task_runner| so we take a 1096 // There's no guarantee on the lifetime of |loading_task_runner| so we take a
1097 // copy. 1097 // copy.
1098 context_->SetWebTaskRunner(make_scoped_ptr(loading_task_runner->clone())); 1098 context_->SetWebTaskRunner(make_scoped_ptr(loading_task_runner->clone()));
1099 } 1099 }
1100 1100
1101 } // namespace content 1101 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/shell/browser/shell_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698