| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ | 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ |
| 6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ | 6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #import <Foundation/Foundation.h> | 10 #import <Foundation/Foundation.h> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Updating navigation state via |setState:forNavigation:| does not change the | 75 // Updating navigation state via |setState:forNavigation:| does not change the |
| 76 // last added navigation. Returns nil if there are no stored navigations or | 76 // last added navigation. Returns nil if there are no stored navigations or |
| 77 // last navigation was null. | 77 // last navigation was null. |
| 78 - (WKNavigation*)lastAddedNavigation; | 78 - (WKNavigation*)lastAddedNavigation; |
| 79 | 79 |
| 80 // State of WKNavigation which was added the most recently via | 80 // State of WKNavigation which was added the most recently via |
| 81 // |setState:forNavigation:|. WKNavigationState::NONE if CRWWKNavigationStates | 81 // |setState:forNavigation:|. WKNavigationState::NONE if CRWWKNavigationStates |
| 82 // is empty. | 82 // is empty. |
| 83 - (web::WKNavigationState)lastAddedNavigationState; | 83 - (web::WKNavigationState)lastAddedNavigationState; |
| 84 | 84 |
| 85 // Returns navigations that are not yet committed, finished or failed. |
| 86 // This array may contain NSNull to represent null WKNavigation. |
| 87 - (NSSet*)pendingNavigations; |
| 88 |
| 85 @end | 89 @end |
| 86 | 90 |
| 87 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ | 91 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_NAVIGATION_STATES_H_ |
| OLD | NEW |