Index: ios/web/public/navigation_item.h |
diff --git a/ios/web/public/navigation_item.h b/ios/web/public/navigation_item.h |
index e067a82ee32b2feae65a2f0e469e4f6af5efb8c2..37d4e06b4f20241133607ccd79983965380b440c 100644 |
--- a/ios/web/public/navigation_item.h |
+++ b/ios/web/public/navigation_item.h |
@@ -13,6 +13,12 @@ |
class GURL; |
+#if defined(__OBJC__) |
+@class NSDictionary; |
+#else |
+class NSDictionary; |
+#endif // __OBJC__ |
+ |
namespace web { |
struct FaviconStatus; |
struct Referrer; |
@@ -114,6 +120,21 @@ class NavigationItem { |
// property doesn't get serialized. |
virtual void SetUnsafe(bool is_unsafe) = 0; |
virtual bool IsUnsafe() const = 0; |
+ |
+ // |true| if this item uses a desktop user agent in HTTP requests and |
+ // UIWebView. |
+ virtual void SetIsOverridingUserAgent(bool is_overriding_user_agent) = 0; |
+ virtual bool IsOverridingUserAgent() const = 0; |
+ |
+ // |true| if this item is the result of a POST request with data. |
+ virtual bool HasPostData() const = 0; |
+ |
+ // Returns the item's current http request headers. |
+ virtual NSDictionary* GetHttpRequestHeaders() const = 0; |
+ |
+ // Adds headers from |additional_headers| to the item's http request headers. |
+ // Existing headers with the same key will be overridden. |
+ virtual void AddHttpRequestHeaders(NSDictionary* additional_headers) = 0; |
}; |
} // namespace web |