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

Side by Side Diff: ios/web/public/web_state/ui/crw_web_delegate.h

Issue 2751793002: Cleaned up old navigation code that did not use pending navigation item. (Closed)
Patch Set: Moar DCHECKs Created 3 years, 9 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #import <UIKit/UIKit.h> 9 #import <UIKit/UIKit.h>
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 - (void)webWillReload; 51 - (void)webWillReload;
52 // Called when a page is loaded using loadWithParams. In 52 // Called when a page is loaded using loadWithParams. In
53 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that 53 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that
54 // the delegate can make changes if necessary. 54 // the delegate can make changes if necessary.
55 // TODO(rohitrao): This is not a great API. Clean it up. 55 // TODO(rohitrao): This is not a great API. Clean it up.
56 - (void)webWillInitiateLoadWithParams: 56 - (void)webWillInitiateLoadWithParams:
57 (web::NavigationManager::WebLoadParams&)params; 57 (web::NavigationManager::WebLoadParams&)params;
58 - (void)webDidUpdateSessionForLoadWithParams: 58 - (void)webDidUpdateSessionForLoadWithParams:
59 (const web::NavigationManager::WebLoadParams&)params 59 (const web::NavigationManager::WebLoadParams&)params
60 wasInitialNavigation:(BOOL)initialNavigation; 60 wasInitialNavigation:(BOOL)initialNavigation;
61 // Called from finishHistoryNavigationFromEntry.
62 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|.
63 - (void)webWillFinishHistoryNavigation;
64 61
65 @optional 62 @optional
66 63
67 // Called to ask CRWWebDelegate if |CRWWebController| should open the given URL. 64 // Called to ask CRWWebDelegate if |CRWWebController| should open the given URL.
68 // CRWWebDelegate can intercept the request by returning NO and processing URL 65 // CRWWebDelegate can intercept the request by returning NO and processing URL
69 // in own way. 66 // in own way.
70 - (BOOL)webController:(CRWWebController*)webController 67 - (BOOL)webController:(CRWWebController*)webController
71 shouldOpenURL:(const GURL&)url 68 shouldOpenURL:(const GURL&)url
72 mainDocumentURL:(const GURL&)mainDocumentURL 69 mainDocumentURL:(const GURL&)mainDocumentURL
73 linkClicked:(BOOL)linkClicked; 70 linkClicked:(BOOL)linkClicked;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Called when a PassKit file is downloaded. |data| should be the data from a 111 // Called when a PassKit file is downloaded. |data| should be the data from a
115 // PassKit file, but this is not guaranteed, and the delegate is responsible for 112 // PassKit file, but this is not guaranteed, and the delegate is responsible for
116 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 113 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
117 // download does not successfully complete, |data| will be nil. 114 // download does not successfully complete, |data| will be nil.
118 - (void)webController:(CRWWebController*)webController 115 - (void)webController:(CRWWebController*)webController
119 didLoadPassKitObject:(NSData*)data; 116 didLoadPassKitObject:(NSData*)data;
120 117
121 @end 118 @end
122 119
123 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 120 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698