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

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

Issue 2705673003: Removed CRWSessionEntry from CRWWebController. (Closed)
Patch Set: reintroduced delegate callback 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that 62 // |webWillInitiateLoadWithParams|, the |params| argument is non-const so that
63 // the delegate can make changes if necessary. 63 // the delegate can make changes if necessary.
64 // TODO(rohitrao): This is not a great API. Clean it up. 64 // TODO(rohitrao): This is not a great API. Clean it up.
65 - (void)webWillInitiateLoadWithParams: 65 - (void)webWillInitiateLoadWithParams:
66 (web::NavigationManager::WebLoadParams&)params; 66 (web::NavigationManager::WebLoadParams&)params;
67 - (void)webDidUpdateSessionForLoadWithParams: 67 - (void)webDidUpdateSessionForLoadWithParams:
68 (const web::NavigationManager::WebLoadParams&)params 68 (const web::NavigationManager::WebLoadParams&)params
69 wasInitialNavigation:(BOOL)initialNavigation; 69 wasInitialNavigation:(BOOL)initialNavigation;
70 // Called from finishHistoryNavigationFromEntry. 70 // Called from finishHistoryNavigationFromEntry.
71 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|. 71 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|.
72 - (void)webWillFinishHistoryNavigationFromEntry:(CRWSessionEntry*)fromEntry; 72 - (void)webWillFinishHistoryNavigation;
73
73 // --------------------------------------------------------------------- 74 // ---------------------------------------------------------------------
74
75 // Called when |webController| wants to open a new window. |URL| is the URL of 75 // Called when |webController| wants to open a new window. |URL| is the URL of
76 // the new window; |openerURL| is the URL of the page which requested a window 76 // the new window; |openerURL| is the URL of the page which requested a window
77 // to be open; |initiatedByUser| is YES if action was caused by the user. 77 // to be open; |initiatedByUser| is YES if action was caused by the user.
78 // |webController| will not open a window if this method returns nil. This 78 // |webController| will not open a window if this method returns nil. This
79 // method can not return |webController|. 79 // method can not return |webController|.
80 - (CRWWebController*)webController:(CRWWebController*)webController 80 - (CRWWebController*)webController:(CRWWebController*)webController
81 createWebControllerForURL:(const GURL&)URL 81 createWebControllerForURL:(const GURL&)URL
82 openerURL:(const GURL&)openerURL 82 openerURL:(const GURL&)openerURL
83 initiatedByUser:(BOOL)initiatedByUser; 83 initiatedByUser:(BOOL)initiatedByUser;
84 84
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Called when a PassKit file is downloaded. |data| should be the data from a 134 // Called when a PassKit file is downloaded. |data| should be the data from a
135 // PassKit file, but this is not guaranteed, and the delegate is responsible for 135 // PassKit file, but this is not guaranteed, and the delegate is responsible for
136 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 136 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
137 // download does not successfully complete, |data| will be nil. 137 // download does not successfully complete, |data| will be nil.
138 - (void)webController:(CRWWebController*)webController 138 - (void)webController:(CRWWebController*)webController
139 didLoadPassKitObject:(NSData*)data; 139 didLoadPassKitObject:(NSData*)data;
140 140
141 @end 141 @end
142 142
143 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 143 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/session_storage_builder.mm ('k') | ios/web/web_state/ui/crw_web_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698