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

Unified Diff: ios/web/public/navigation_item.h

Issue 1106963003: Re-sync ios/web with downstream version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add forgotten file Created 5 years, 8 months 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 | « ios/web/public/DEPS ('k') | ios/web/public/test/web_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ios/web/public/DEPS ('k') | ios/web/public/test/web_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698