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

Unified Diff: content/public/browser/navigation_throttle.cc

Issue 1424003006: DataReductionProxyNavigationThrottle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge-session-throttle
Patch Set: 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
« no previous file with comments | « content/public/browser/navigation_throttle.h ('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_throttle.cc
diff --git a/content/public/browser/navigation_throttle.cc b/content/public/browser/navigation_throttle.cc
index ac3b3aa405654418ac2e76e63b2380bc4ed16164..8c628fbbb38f7a15f53606ca4d787ae20187676e 100644
--- a/content/public/browser/navigation_throttle.cc
+++ b/content/public/browser/navigation_throttle.cc
@@ -4,6 +4,8 @@
#include "content/public/browser/navigation_throttle.h"
+#include "content/browser/frame_host/navigation_handle_impl.h"
+
namespace content {
NavigationThrottle::NavigationThrottle(NavigationHandle* navigation_handle)
@@ -20,4 +22,10 @@ NavigationThrottle::WillRedirectRequest() {
return NavigationThrottle::PROCEED;
}
+void NavigationThrottle::AddExtraHeader(const std::string& name,
+ const std::string& value) {
+ static_cast<NavigationHandleImpl*>(navigation_handle_)
+ ->AddExtraHeader(name, value);
+}
+
} // namespace content
« no previous file with comments | « content/public/browser/navigation_throttle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698