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

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

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_handle.h ('k') | content/public/browser/navigation_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_throttle.h
diff --git a/content/public/browser/navigation_throttle.h b/content/public/browser/navigation_throttle.h
index fff64b1f4fb8c61f425c27b140786fce5eaa617d..badfd2d01450a3801ae3a7f0953f4a3c13e17e55 100644
--- a/content/public/browser/navigation_throttle.h
+++ b/content/public/browser/navigation_throttle.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_
#define CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_
+#include <string>
+
#include "content/common/content_export.h"
namespace content {
@@ -59,6 +61,13 @@ class CONTENT_EXPORT NavigationThrottle {
// navigation.
NavigationHandle* navigation_handle() const { return navigation_handle_; }
+ protected:
+ // Adds an HTTP header with name |name| and value |value|. This will override
+ // any previously existing header with name |name|. This should only be used
+ // during WillStartRequest or WillRedirectRequest, or before the navigation
+ // is resumed if it has been deferred.
+ void AddExtraHeader(const std::string& name, const std::string& value);
+
private:
NavigationHandle* navigation_handle_;
};
« no previous file with comments | « content/public/browser/navigation_handle.h ('k') | content/public/browser/navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698