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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2161073002: Adds RequestContextType information to the NavigationHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « no previous file | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 985f31eec74a5de1b81cb8a935ca5afb1b6a2342..264bffa5289c14ca41f7bd867563bdfefd1c26a4 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -18,6 +18,7 @@
#include "content/common/content_export.h"
#include "content/public/browser/navigation_data.h"
#include "content/public/browser/navigation_throttle.h"
+#include "content/public/common/request_context_type.h"
#include "url/gurl.h"
struct FrameHostMsg_DidCommitProvisionalLoad_Params;
@@ -26,7 +27,6 @@ namespace content {
class NavigatorDelegate;
class ResourceRequestBodyImpl;
-struct NavigationRequestInfo;
// This class keeps track of a single navigation. It is created upon receipt of
// a DidStartProvisionalLoad IPC in a RenderFrameHost. The RenderFrameHost owns
@@ -121,6 +121,8 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
NavigatorDelegate* GetDelegate() const;
+ RequestContextType GetRequestContextType() const;
+
// Returns the response headers for the request or nullptr if there are none.
// This should only be accessed after a redirect was encountered or after the
// navigation is ready to commit. The headers returned should not be modified,
@@ -179,6 +181,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
bool has_user_gesture,
ui::PageTransition transition,
bool is_external_protocol,
+ RequestContextType request_context_type,
const ThrottleChecksFinishedCallback& callback);
// Called when the URLRequest will be redirected in the network stack.
@@ -312,6 +315,9 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
// The unique id of the corresponding NavigationEntry.
int pending_nav_entry_id_;
+ // The fetch request context type.
+ RequestContextType request_context_type_;
+
// This callback will be run when all throttle checks have been performed.
ThrottleChecksFinishedCallback complete_callback_;
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698