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_; |
}; |