Commit d68df1b5 authored by Etienne Pierre-doray's avatar Etienne Pierre-doray Committed by Commit Bot

Const-Correctness in third_party/blink/renderer/platform/loader/fetch

Change-Id: I4f5b8ba6150924d7ae7a33c4aed9b8ee764b442c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1647891Reviewed-by: default avatarHiroshige Hayashizaki <hiroshige@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#667187}
parent 27e19891
...@@ -102,10 +102,10 @@ size_t GetOutstandingThrottledLimit( ...@@ -102,10 +102,10 @@ size_t GetOutstandingThrottledLimit(
if (!RuntimeEnabledFeatures::ResourceLoadSchedulerEnabled()) if (!RuntimeEnabledFeatures::ResourceLoadSchedulerEnabled())
return ResourceLoadScheduler::kOutstandingUnlimited; return ResourceLoadScheduler::kOutstandingUnlimited;
static size_t main_frame_limit = GetFieldTrialUint32Param( static const size_t main_frame_limit = GetFieldTrialUint32Param(
kResourceLoadThrottlingTrial, kOutstandingLimitForBackgroundMainFrameName, kResourceLoadThrottlingTrial, kOutstandingLimitForBackgroundMainFrameName,
kOutstandingLimitForBackgroundMainFrameDefault); kOutstandingLimitForBackgroundMainFrameDefault);
static size_t sub_frame_limit = GetFieldTrialUint32Param( static const size_t sub_frame_limit = GetFieldTrialUint32Param(
kResourceLoadThrottlingTrial, kOutstandingLimitForBackgroundSubFrameName, kResourceLoadThrottlingTrial, kOutstandingLimitForBackgroundSubFrameName,
kOutstandingLimitForBackgroundSubFrameDefault); kOutstandingLimitForBackgroundSubFrameDefault);
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
namespace blink { namespace blink {
base::TimeDelta ResourceRequest::default_timeout_interval_ = const base::TimeDelta ResourceRequest::default_timeout_interval_ =
base::TimeDelta::Max(); base::TimeDelta::Max();
ResourceRequest::ResourceRequest() : ResourceRequest(NullURL()) {} ResourceRequest::ResourceRequest() : ResourceRequest(NullURL()) {}
......
...@@ -492,7 +492,7 @@ class PLATFORM_EXPORT ResourceRequest final { ...@@ -492,7 +492,7 @@ class PLATFORM_EXPORT ResourceRequest final {
mutable CacheControlHeader cache_control_header_cache_; mutable CacheControlHeader cache_control_header_cache_;
static base::TimeDelta default_timeout_interval_; static const base::TimeDelta default_timeout_interval_;
bool is_ad_resource_ = false; bool is_ad_resource_ = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment