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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2809103002: ur_ls -> urls in ResourceFetcher (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index e17a24a7547d7b7344346c6ae243950ca2102002..fc5b53259a3164e4816724e4d8862c0658abdb88 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -305,7 +305,7 @@ void ResourceFetcher::RequestLoadStarted(unsigned long identifier,
RevalidationPolicy policy,
bool is_static_data) {
if (policy == kUse && resource->GetStatus() == ResourceStatus::kCached &&
- !validated_ur_ls_.Contains(resource->Url())) {
+ !validated_urls_.Contains(resource->Url())) {
// Loaded from MemoryCache.
DidLoadResourceFromMemoryCache(identifier, resource,
request.GetResourceRequest());
@@ -315,7 +315,7 @@ void ResourceFetcher::RequestLoadStarted(unsigned long identifier,
return;
if (policy == kUse && !resource->StillNeedsLoad() &&
- !validated_ur_ls_.Contains(request.GetResourceRequest().Url())) {
+ !validated_urls_.Contains(request.GetResourceRequest().Url())) {
// Resources loaded from memory cache should be reported the first time
// they're used.
RefPtr<ResourceTimingInfo> info = ResourceTimingInfo::Create(
@@ -329,10 +329,10 @@ void ResourceFetcher::RequestLoadStarted(unsigned long identifier,
resource_timing_report_timer_.StartOneShot(0, BLINK_FROM_HERE);
}
- if (validated_ur_ls_.size() >= kMaxValidatedURLsSize) {
- validated_ur_ls_.Clear();
+ if (validated_urls_.size() >= kMaxValidatedURLsSize) {
+ validated_urls_.Clear();
}
- validated_ur_ls_.insert(request.GetResourceRequest().Url());
+ validated_urls_.insert(request.GetResourceRequest().Url());
}
void ResourceFetcher::DidLoadResourceFromMemoryCache(
@@ -968,7 +968,7 @@ ResourceFetcher::DetermineRevalidationPolicy(Resource::Type type,
// or other factors that require separate requests.
if (type != Resource::kRaw) {
if (!Context().IsLoadComplete() &&
- validated_ur_ls_.Contains(existing_resource->Url()))
+ validated_urls_.Contains(existing_resource->Url()))
return kUse;
if (existing_resource->IsLoading())
return kUse;
@@ -1096,24 +1096,24 @@ void ResourceFetcher::PreloadStarted(Resource* resource) {
preloads_ = new HeapListHashSet<Member<Resource>>;
preloads_->insert(resource);
- if (preloaded_ur_ls_for_test_)
- preloaded_ur_ls_for_test_->insert(resource->Url().GetString());
+ if (preloaded_urls_for_test_)
+ preloaded_urls_for_test_->insert(resource->Url().GetString());
}
void ResourceFetcher::EnableIsPreloadedForTest() {
- if (preloaded_ur_ls_for_test_)
+ if (preloaded_urls_for_test_)
return;
- preloaded_ur_ls_for_test_ = WTF::WrapUnique(new HashSet<String>);
+ preloaded_urls_for_test_ = WTF::WrapUnique(new HashSet<String>);
if (preloads_) {
for (const auto& resource : *preloads_)
- preloaded_ur_ls_for_test_->insert(resource->Url().GetString());
+ preloaded_urls_for_test_->insert(resource->Url().GetString());
}
}
bool ResourceFetcher::IsPreloadedForTest(const KURL& url) const {
- DCHECK(preloaded_ur_ls_for_test_);
- return preloaded_ur_ls_for_test_->Contains(url.GetString());
+ DCHECK(preloaded_urls_for_test_);
+ return preloaded_urls_for_test_->Contains(url.GetString());
}
void ResourceFetcher::ClearPreloads(ClearPreloadsPolicy policy) {
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698