OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // item has POST data the user is prompted to see if they really want to | 147 // item has POST data the user is prompted to see if they really want to |
148 // reload the page. In nearly all cases pass in true. If a transient item is | 148 // reload the page. In nearly all cases pass in true. If a transient item is |
149 // showing, initiates a new navigation to its URL. | 149 // showing, initiates a new navigation to its URL. |
150 virtual void Reload(bool check_for_repost) = 0; | 150 virtual void Reload(bool check_for_repost) = 0; |
151 | 151 |
152 // Forces the pending item to be loaded using desktop user agent. Note that | 152 // Forces the pending item to be loaded using desktop user agent. Note that |
153 // the pending item may or may not already exist. | 153 // the pending item may or may not already exist. |
154 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't | 154 // TODO(crbug.com/692303): Remove this when overriding the user agent doesn't |
155 // create a new NavigationItem. | 155 // create a new NavigationItem. |
156 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0; | 156 virtual void OverrideDesktopUserAgentForNextPendingItem() = 0; |
| 157 |
| 158 // Whether or not desktop user agent is used for the currently loaded page. |
| 159 // Returns true, if use a desktop user agent and false for a mobile one. |
| 160 virtual bool IsUsingDesktopUserAgent() const = 0; |
157 }; | 161 }; |
158 | 162 |
159 } // namespace web | 163 } // namespace web |
160 | 164 |
161 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 165 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
OLD | NEW |