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

Unified Diff: third_party/WebKit/public/platform/WebCachePolicy.h

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/public/platform/WebCachePolicy.h
diff --git a/third_party/WebKit/public/platform/WebCachePolicy.h b/third_party/WebKit/public/platform/WebCachePolicy.h
new file mode 100644
index 0000000000000000000000000000000000000000..83fbc741e628d31204b12af24a14252a5795ab9a
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebCachePolicy.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebCachePolicy_h
+#define WebCachePolicy_h
+
+namespace blink {
+
+enum class WebCachePolicy {
+ UseProtocolCachePolicy, // normal load
+ ValidatingCacheData, // reload
+ BypassingCache, // end-to-end reload
+ ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale data
+ ReturnCacheDataDontLoad, // results of a post - allow stale data and only use cache
+};
+
+} // namespace blink
+
+#endif // WebCachePolicy_h
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698