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

Unified Diff: third_party/WebKit/public/web/WebFrameLoadType.h

Issue 1975753006: Pull to refresh: Use new reload type RELOAD_MAIN_RESOURCE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #14 and #16 Created 4 years, 7 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/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameLoadType.h
diff --git a/third_party/WebKit/public/web/WebFrameLoadType.h b/third_party/WebKit/public/web/WebFrameLoadType.h
index 0d237f53138cad8b9d72dd30771ecc28f6d3111f..df55aa6147fdeb75829066c40f72d3a94bbfff0e 100644
--- a/third_party/WebKit/public/web/WebFrameLoadType.h
+++ b/third_party/WebKit/public/web/WebFrameLoadType.h
@@ -11,15 +11,40 @@ namespace blink {
// The type of load for a navigation.
// TODO(clamy): Return a WebFrameLoadType instead of a WebHistoryCommitType
// in DidCommitProvisionalLoad.
+//
+// Standard:
+// Follows network and cache protocols, e.g. using cached entries unless
+// they are expired. Used in usual navigations.
+// BackForward:
+// Uses cached entries even if the entries are stale. Used in history back and
+// forward navigations.
+// Reload:
+// Revalidates cached entries even if the entries are fresh. Used in usual
+// reload.
+// ReloadMainResource:
+// Revalidates a cached entry for the main resource if one exists, but follows
+// protocols for other subresources. Blink internally uses this for the same
+// page navigation. Also used in optimized reload for mobiles in a field
+// trial.
+// ReplaceCurrentItem:
+// Same as Standard, but replaces current navigation entry in the history.
+// InitialInChildFrame:
+// Used in the first load for a subframe.
+// InitialHistoryLoad:
+// Used in history navigation in a newly created frame.
+// ReloadBypassingCache:
+// Bypasses any caches, memory and disk cache in the browser, and caches in
+// proxy servers, to fetch fresh contents directly from the end server.
+// Used in Shift-Reload.
enum class WebFrameLoadType {
Standard,
BackForward,
Reload,
- Same, // user loads same URL again (but not reload button)
+ ReloadMainResource,
ReplaceCurrentItem,
InitialInChildFrame,
- InitialHistoryLoad, // history navigation in a newly created frame
- ReloadBypassingCache, // super reload
+ InitialHistoryLoad,
+ ReloadBypassingCache,
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698