Index: content/common/navigation_params.h |
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h |
index 86e5e06917fd0946b456f2b467a3790cfe58c223..b0b3d3f21eb10446380d4c3f20ce1bf750634dab 100644 |
--- a/content/common/navigation_params.h |
+++ b/content/common/navigation_params.h |
@@ -22,6 +22,12 @@ class RefCountedMemory; |
namespace content { |
+// PlzNavigate |
+// Helper function to determine if the navigation to |url| should make a request |
+// to the network stack. A request should not be sent for data URLs, JavaScript |
+// URLs or about:blank. In these cases, no request needs to be sent. |
+bool ShouldMakeNetworkRequestForURL(const GURL& url); |
+ |
// The following structures hold parameters used during a navigation. In |
// particular they are used by FrameMsg_Navigate, FrameMsg_CommitNavigation and |
// FrameHostMsg_BeginNavigation. |