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

Unified Diff: content/public/browser/navigation_handle.h

Issue 2638423008: Convert ContentFaviconDriver to use the new navigation callbacks. (Closed)
Patch Set: add comment Created 3 years, 11 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 | « content/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index 96dddc5624480a94045937de247eedbc4eea8a5d..59114df530208866f1fa92ce4301810f2b0fecfb 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -10,6 +10,7 @@
#include "content/common/content_export.h"
#include "content/public/browser/navigation_throttle.h"
+#include "content/public/browser/reload_type.h"
#include "content/public/common/referrer.h"
#include "net/base/net_errors.h"
#include "net/http/http_response_info.h"
@@ -98,6 +99,11 @@ class CONTENT_EXPORT NavigationHandle {
virtual const GURL& GetSearchableFormURL() = 0;
virtual const std::string& GetSearchableFormEncoding() = 0;
+ // Returns the reload type for this navigation. Note that renderer-initiated
+ // reloads (via location.reload()) won't count as a reload and do return
+ // ReloadType::NONE.
+ virtual ReloadType GetReloadType() = 0;
+
// Parameters available at network request start time ------------------------
//
// The following parameters are only available when the network request is
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698