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

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

Issue 2521503002: Rename ResourceResponse::addToEncodedDataSize() to setEncodedDataSize() (Closed)
Patch Set: fix Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 info.is_in_cache_storage 1056 info.is_in_cache_storage
1057 ? blink::WebString::fromUTF8(info.cache_storage_cache_name) 1057 ? blink::WebString::fromUTF8(info.cache_storage_cache_name)
1058 : blink::WebString()); 1058 : blink::WebString());
1059 blink::WebVector<blink::WebString> cors_exposed_header_names( 1059 blink::WebVector<blink::WebString> cors_exposed_header_names(
1060 info.cors_exposed_header_names.size()); 1060 info.cors_exposed_header_names.size());
1061 std::transform( 1061 std::transform(
1062 info.cors_exposed_header_names.begin(), 1062 info.cors_exposed_header_names.begin(),
1063 info.cors_exposed_header_names.end(), cors_exposed_header_names.begin(), 1063 info.cors_exposed_header_names.end(), cors_exposed_header_names.begin(),
1064 [](const std::string& h) { return blink::WebString::fromLatin1(h); }); 1064 [](const std::string& h) { return blink::WebString::fromLatin1(h); });
1065 response->setCorsExposedHeaderNames(cors_exposed_header_names); 1065 response->setCorsExposedHeaderNames(cors_exposed_header_names);
1066 response->addToEncodedDataLength(info.encoded_data_length); 1066 response->setEncodedDataLength(info.encoded_data_length);
1067 1067
1068 SetSecurityStyleAndDetails(url, info, response, report_security_info); 1068 SetSecurityStyleAndDetails(url, info, response, report_security_info);
1069 1069
1070 WebURLResponseExtraDataImpl* extra_data = 1070 WebURLResponseExtraDataImpl* extra_data =
1071 new WebURLResponseExtraDataImpl(info.alpn_negotiated_protocol); 1071 new WebURLResponseExtraDataImpl(info.alpn_negotiated_protocol);
1072 response->setExtraData(extra_data); 1072 response->setExtraData(extra_data);
1073 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); 1073 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy);
1074 extra_data->set_was_alpn_negotiated(info.was_alpn_negotiated); 1074 extra_data->set_was_alpn_negotiated(info.was_alpn_negotiated);
1075 extra_data->set_was_alternate_protocol_available( 1075 extra_data->set_was_alternate_protocol_available(
1076 info.was_alternate_protocol_available); 1076 info.was_alternate_protocol_available);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 int intra_priority_value) { 1249 int intra_priority_value) {
1250 context_->DidChangePriority(new_priority, intra_priority_value); 1250 context_->DidChangePriority(new_priority, intra_priority_value);
1251 } 1251 }
1252 1252
1253 void WebURLLoaderImpl::setLoadingTaskRunner( 1253 void WebURLLoaderImpl::setLoadingTaskRunner(
1254 base::SingleThreadTaskRunner* loading_task_runner) { 1254 base::SingleThreadTaskRunner* loading_task_runner) {
1255 context_->SetTaskRunner(loading_task_runner); 1255 context_->SetTaskRunner(loading_task_runner);
1256 } 1256 }
1257 1257
1258 } // namespace content 1258 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698