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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp

Issue 1858533002: Introduce WebCachePolicy to merge cache policy enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hiroshige review Created 4 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
Index: third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
index 44656517c3313ba9c1847d535d3320a4396d4fd3..7ef18c2cfdb4e0f9d5eca192263aea0e13fe9104 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
@@ -18,6 +18,7 @@
#include "core/inspector/InspectorCSSAgent.h"
#include "core/inspector/InspectorPageAgent.h"
#include "core/page/Page.h"
+#include "public/platform/WebCachePolicy.h"
#include "public/platform/WebURLRequest.h"
namespace blink {
@@ -102,11 +103,10 @@ void InspectorResourceContentLoader::start()
ResourceRequest resourceRequest;
HistoryItem* item = document->frame() ? document->frame()->loader().currentItem() : nullptr;
if (item) {
- resourceRequest =
- FrameLoader::resourceRequestFromHistoryItem(item, ReturnCacheDataDontLoad);
+ resourceRequest = FrameLoader::resourceRequestFromHistoryItem(item, WebCachePolicy::ReturnCacheDataDontLoad);
} else {
resourceRequest = document->url();
- resourceRequest.setCachePolicy(ReturnCacheDataDontLoad);
+ resourceRequest.setCachePolicy(WebCachePolicy::ReturnCacheDataDontLoad);
}
resourceRequest.setRequestContext(WebURLRequest::RequestContextInternal);

Powered by Google App Engine
This is Rietveld 408576698