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

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

Issue 2642233004: Removed Form Resubmission callback from CRWWebDelegate. (Closed)
Patch Set: Added ShowRepostFormWarningWithNoDelegateMethod test Created 3 years, 11 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Called when the page load was cancelled by page activity (before a success / 74 // Called when the page load was cancelled by page activity (before a success /
75 // failure state is known). Phase will be PAGE_LOADED. 75 // failure state is known). Phase will be PAGE_LOADED.
76 - (void)webLoadCancelled:(const GURL&)url; 76 - (void)webLoadCancelled:(const GURL&)url;
77 // Called when a page updates its history stack using pushState or replaceState. 77 // Called when a page updates its history stack using pushState or replaceState.
78 // TODO(stuartmorgan): Generalize this to cover any change of URL without page 78 // TODO(stuartmorgan): Generalize this to cover any change of URL without page
79 // document change. 79 // document change.
80 - (void)webDidUpdateHistoryStateWithPageURL:(const GURL&)pageUrl; 80 - (void)webDidUpdateHistoryStateWithPageURL:(const GURL&)pageUrl;
81 // Called when a placeholder image should be displayed instead of the WebView. 81 // Called when a placeholder image should be displayed instead of the WebView.
82 - (void)webController:(CRWWebController*)webController 82 - (void)webController:(CRWWebController*)webController
83 retrievePlaceholderOverlayImage:(void (^)(UIImage*))block; 83 retrievePlaceholderOverlayImage:(void (^)(UIImage*))block;
84 // Consults the delegate whether a form should be resubmitted for a request.
85 // Occurs when a POST request is reached when navigating through history.
86 // Call |continueBlock| if a form should be resubmitted.
87 // Call |cancelBlock| if a form should not be resubmitted.
88 // Delegates must call either of these (just once) before the load will
89 // continue.
90 - (void)webController:(CRWWebController*)webController
91 onFormResubmissionForRequest:(NSURLRequest*)request
92 continueBlock:(ProceduralBlock)continueBlock
93 cancelBlock:(ProceduralBlock)cancelBlock;
94 84
95 // --------------------------------------------------------------------- 85 // ---------------------------------------------------------------------
96 // TODO(rohitrao): Eliminate as many of the following delegate methods as 86 // TODO(rohitrao): Eliminate as many of the following delegate methods as
97 // possible. They only exist because the Tab and CRWWebController logic was 87 // possible. They only exist because the Tab and CRWWebController logic was
98 // very intertwined. We should streamline the logic to jump between classes 88 // very intertwined. We should streamline the logic to jump between classes
99 // less, then remove any delegate method that becomes unneccessary as a result. 89 // less, then remove any delegate method that becomes unneccessary as a result.
100 90
101 // Called when the page is reloaded. 91 // Called when the page is reloaded.
102 - (void)webWillReload; 92 - (void)webWillReload;
103 // Called when a page is loaded using loadWithParams. In 93 // Called when a page is loaded using loadWithParams. In
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Called when a PassKit file is downloaded. |data| should be the data from a 173 // Called when a PassKit file is downloaded. |data| should be the data from a
184 // PassKit file, but this is not guaranteed, and the delegate is responsible for 174 // PassKit file, but this is not guaranteed, and the delegate is responsible for
185 // error handling non PassKit data using -[PKPass initWithData:error:]. If the 175 // error handling non PassKit data using -[PKPass initWithData:error:]. If the
186 // download does not successfully complete, |data| will be nil. 176 // download does not successfully complete, |data| will be nil.
187 - (void)webController:(CRWWebController*)webController 177 - (void)webController:(CRWWebController*)webController
188 didLoadPassKitObject:(NSData*)data; 178 didLoadPassKitObject:(NSData*)data;
189 179
190 @end 180 @end
191 181
192 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ 182 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_delegate.mm ('k') | ios/web/public/web_state/web_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698