diff options
author | olli.raula <olli.raula@intel.com> | 2016-01-25 00:37:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-25 08:38:25 +0000 |
commit | ee489a59d11a8096dbe7f09af35ba3b604dfa6c3 (patch) | |
tree | 246d5fa9b15a297736c42816c3f50c61de20e2cb /content/browser/appcache | |
parent | 6daf96557d0720b2a7298dde3633f74e30709313 (diff) | |
download | chromium_src-ee489a59d11a8096dbe7f09af35ba3b604dfa6c3.zip chromium_src-ee489a59d11a8096dbe7f09af35ba3b604dfa6c3.tar.gz chromium_src-ee489a59d11a8096dbe7f09af35ba3b604dfa6c3.tar.bz2 |
Remove use of void** from HttpResponseHeaders::EnumerateHeader
Remove use of of obaque void** and use instead
size_t* parameter. Logic inside is untouched.
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/1607773005
Cr-Commit-Position: refs/heads/master@{#371204}
Diffstat (limited to 'content/browser/appcache')
-rw-r--r-- | content/browser/appcache/appcache_update_job.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/appcache/appcache_update_job.cc b/content/browser/appcache/appcache_update_job.cc index b6ab3fb..b7133fc 100644 --- a/content/browser/appcache/appcache_update_job.cc +++ b/content/browser/appcache/appcache_update_job.cc @@ -279,7 +279,7 @@ void AppCacheUpdateJob::URLFetcher::AddConditionalHeaders( // Add If-Modified-Since header if response info has Last-Modified header. const std::string last_modified = "Last-Modified"; std::string last_modified_value; - headers->EnumerateHeader(NULL, last_modified, &last_modified_value); + headers->EnumerateHeader(nullptr, last_modified, &last_modified_value); if (!last_modified_value.empty()) { extra_headers.SetHeader(net::HttpRequestHeaders::kIfModifiedSince, last_modified_value); @@ -288,7 +288,7 @@ void AppCacheUpdateJob::URLFetcher::AddConditionalHeaders( // Add If-None-Match header if response info has ETag header. const std::string etag = "ETag"; std::string etag_value; - headers->EnumerateHeader(NULL, etag, &etag_value); + headers->EnumerateHeader(nullptr, etag, &etag_value); if (!etag_value.empty()) { extra_headers.SetHeader(net::HttpRequestHeaders::kIfNoneMatch, etag_value); @@ -1474,7 +1474,7 @@ void AppCacheUpdateJob::OnResponseInfoLoaded( // Responses with a "vary" header get treated as expired. const std::string name = "vary"; std::string value; - void* iter = NULL; + size_t iter = 0; if (!http_info->headers.get() || http_info->headers->RequiresValidation(http_info->request_time, http_info->response_time, |