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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2710113002: DO NOT SUBMIT really old prototype of sprite recognition for image replacement
Patch Set: Created 3 years, 10 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/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 919993c5040d288460ec5d2ef7b53eeac0ee7fce..0b6ebb466beb311f0007dbc69a0298d7a7ad49e0 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -884,14 +884,10 @@ String Resource::getMemoryDumpName() const
return String::format("web_cache/%s_resources/%ld", resourceTypeToString(getType(), options().initiatorInfo), m_identifier);
}
-void Resource::setCachePolicyBypassingCache()
+void Resource::setResourceRequest(const ResourceRequest& resourceRequest)
{
- m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache);
-}
-
-void Resource::setLoFiStateOff()
-{
- m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff);
+ if (&m_resourceRequest != &resourceRequest)
+ m_resourceRequest = resourceRequest;
}
void Resource::revalidationSucceeded(const ResourceResponse& validatingResponse)
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698