Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 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_ | |
| 7 | |
| 8 #import <WebKit/WebKit.h> | |
| 9 | |
| 10 @class CRWWKScriptMessageRouter; | |
| 11 | |
| 12 // Class to load POST requests in a provided web view via JavaScript. | |
| 13 @interface CRWJSPOSTRequestLoader : NSObject | |
| 14 | |
| 15 // Asynchronously loads a POST |request| in provided |webView|. | |
| 16 // It temporarily installs JavaScript message routers with |messageRouter| to | |
| 17 // handle HTTP errors. The |completionBlock| is called once the request has been | |
| 18 // executed. In case of successful request, the passed error is nil. | |
|
Eugene But (OOO till 7-30)
2015/12/03 16:51:42
Add: |completionBlock| can not be null.
stkhapugin
2015/12/03 17:51:02
Done.
| |
| 19 - (void)loadPOSTRequest:(NSURLRequest*)request | |
| 20 inWebView:(WKWebView*)webView | |
| 21 messageRouter:(CRWWKScriptMessageRouter*)messageRouter | |
| 22 completionBlock:(void (^)(NSError*))completionBlock; | |
|
Eugene But (OOO till 7-30)
2015/12/03 16:51:42
Optional NIT s/completionBlock/completionHandler s
stkhapugin
2015/12/03 17:51:02
Done.
| |
| 23 | |
| 24 @end | |
| 25 | |
| 26 #endif // IOS_WEB_WEB_STATE_JS_CRW_JS_POST_REQUEST_LOADER_H_ | |
| OLD | NEW |