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

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

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: fix GetLastCommittedWebItem Created 3 years, 10 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
Index: ios/web/public/navigation_item.h
diff --git a/ios/web/public/navigation_item.h b/ios/web/public/navigation_item.h
index 21024dcdb8bfd46b8ed0fb60d775dbdc9528e249..6b22ec6bd345421152268bc9f5cffea91a3f7e89 100644
--- a/ios/web/public/navigation_item.h
+++ b/ios/web/public/navigation_item.h
@@ -10,6 +10,7 @@
#include "base/strings/string16.h"
#include "base/supports_user_data.h"
#include "base/time/time.h"
+#import "ios/web/public/user_agent.h"
#import "ios/web/public/web_state/page_display_state.h"
#include "ui/base/page_transition_types.h"
@@ -108,10 +109,9 @@ class NavigationItem : public base::SupportsUserData {
virtual void SetTimestamp(base::Time timestamp) = 0;
virtual base::Time GetTimestamp() 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;
+ // The type of user agent requested for the navigation.
+ virtual void SetUserAgentType(UserAgentType type) = 0;
+ virtual UserAgentType GetUserAgentType() const = 0;
// |true| if this item is the result of a POST request with data.
virtual bool HasPostData() const = 0;

Powered by Google App Engine
This is Rietveld 408576698