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

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

Issue 2742933002: Refactor determineRequestContext() to remove a mutableResourceRequest() call (Closed)
Patch Set: Created 3 years, 9 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
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
index 2d33a4d6d1905fea0df213b141ef6d65065fedf2..59ef02a0c5a95ee8ad84103ab4f64f63b2f506af 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
@@ -131,10 +131,10 @@ class PLATFORM_EXPORT ResourceFetcher
String getCacheIdentifier() const;
- static void determineRequestContext(ResourceRequest&,
- Resource::Type,
- bool isMainFrame);
- void determineRequestContext(ResourceRequest&, Resource::Type);
+ WARN_UNUSED_RESULT static WebURLRequest::RequestContext
+ determineRequestContext(Resource::Type, bool isMainFrame);
+ WARN_UNUSED_RESULT WebURLRequest::RequestContext determineRequestContext(
+ Resource::Type) const;
void updateAllImageResourcePriorities();

Powered by Google App Engine
This is Rietveld 408576698