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

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

Issue 1416953007: Add a function to add extra headers from NavigationThrottle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@data-reduction-proxy-resource-throttle
Patch Set: Rebase Created 5 years 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: content/browser/frame_host/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index ccf9152d495ceaa7c99a9203a104a4a450899381..89c734c7bf558457ad5e210d0891f513473576b4 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/frame_host/navigation_entry_impl.h"
+#include "content/browser/frame_host/navigation_handle_impl.h"
#include "content/browser/loader/navigation_url_loader_delegate.h"
#include "content/common/content_export.h"
#include "content/common/frame_message_enums.h"
@@ -20,7 +21,6 @@ namespace content {
class FrameNavigationEntry;
class FrameTreeNode;
class NavigationControllerImpl;
-class NavigationHandleImpl;
class NavigationURLLoader;
class NavigatorDelegate;
class ResourceRequestBody;
@@ -159,8 +159,12 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
// Called when the NavigationThrottles have been checked by the
// NavigationHandle.
- void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result);
- void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result);
+ void OnStartChecksComplete(
+ NavigationThrottle::ThrottleCheckResult result,
+ const NavigationHandleImpl::ExtraHeadersList& extra_headers_list);
+ void OnRedirectChecksComplete(
+ NavigationThrottle::ThrottleCheckResult result,
+ const NavigationHandleImpl::ExtraHeadersList& extra_headers_list);
// Called when the navigation is about to be sent to the IO thread.
void InitializeServiceWorkerHandleIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698