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

Side by Side Diff: ios/web/web_state/ui/crw_wk_navigation_states.h

Issue 2883423003: Added -[CRWWKNavigationStates pendingNavigations] API. (Closed)
Patch Set: Self review Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_wk_navigation_states.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_wk_navigation_states.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698