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

Side by Side Diff: ios/web/web_state/js/crw_js_post_request_loader.h

Issue 2834413002: Return NavigationContext from registerLoadRequest. (Closed)
Patch Set: - 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_JS_CRW_JS_POST_REQUEST_LOADER_H_ 5 #ifndef IOS_WEB_WEB_STATE_JS_CRW_JS_POST_REQUEST_LOADER_H_
6 #define IOS_WEB_WEB_STATE_JS_CRW_JS_POST_REQUEST_LOADER_H_ 6 #define IOS_WEB_WEB_STATE_JS_CRW_JS_POST_REQUEST_LOADER_H_
7 7
8 #import <WebKit/WebKit.h> 8 #import <WebKit/WebKit.h>
9 9
10 @class CRWWKScriptMessageRouter; 10 @class CRWWKScriptMessageRouter;
11 11
12 // Class to load POST requests in a provided web view via JavaScript. 12 // Class to load POST requests in a provided web view via JavaScript.
13 @interface CRWJSPOSTRequestLoader : NSObject 13 @interface CRWJSPOSTRequestLoader : NSObject
14 14
15 // Asynchronously loads a POST |request| in provided |webView|. 15 // Asynchronously loads a POST |request| in provided |webView|.
16 // It temporarily installs JavaScript message routers with |messageRouter| to 16 // It temporarily installs JavaScript message routers with |messageRouter| to
17 // handle HTTP errors. The |completionHandler| is called once the request has 17 // handle HTTP errors. The |completionHandler| is called once the request has
18 // been executed. In case of successful request, the passed error is nil. 18 // been executed. In case of successful request, the passed error is nil.
19 // The |completionHandler| must not be null. The |messageRouter| and |webView| 19 // The |completionHandler| must not be null. The |messageRouter| and |webView|
20 // must not be nil. The |request| must be a POST request. 20 // must not be nil. The |request| must be a POST request.
21 - (void)loadPOSTRequest:(NSURLRequest*)request 21 - (WKNavigation*)loadPOSTRequest:(NSURLRequest*)request
Eugene But (OOO till 7-30) 2017/04/24 15:52:00 This is a change from dependent CL/2840473003, I d
22 inWebView:(WKWebView*)webView 22 inWebView:(WKWebView*)webView
23 messageRouter:(CRWWKScriptMessageRouter*)messageRouter 23 messageRouter:(CRWWKScriptMessageRouter*)messageRouter
24 completionHandler:(void (^)(NSError*))completionHandler; 24 completionHandler:(void (^)(NSError*))completionHandler;
25 25
26 @end 26 @end
27 27
28 #endif // IOS_WEB_WEB_STATE_JS_CRW_JS_POST_REQUEST_LOADER_H_ 28 #endif // IOS_WEB_WEB_STATE_JS_CRW_JS_POST_REQUEST_LOADER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/js/crw_js_post_request_loader.mm » ('j') | ios/web/web_state/ui/crw_web_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698