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

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

Issue 1375023002: Adds support for POST request with bodies on WKWebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing file Created 5 years 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
(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/WKWebView.h>
Eugene But (OOO till 7-30) 2015/12/02 17:06:15 s/<WebKit/WKWebView.h>/<WebKit/WebKit.h> https://
stkhapugin 2015/12/03 15:43:01 Done.
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. If an error occurs, |errorBlock| is called. If the load
18 // was successfull, the optional |successBlock| is called.
19 - (void)loadPOSTRequest:(NSURLRequest*)request
20 inWebView:(WKWebView*)webView
21 messageRouter:(CRWWKScriptMessageRouter*)messageRouter
22 errorBlock:(void (^)(NSError*))errorBlock
Eugene But (OOO till 7-30) 2015/12/02 17:06:15 There should be only one completion handler for bo
stkhapugin 2015/12/03 15:43:01 Done.
23 successBlock:(void (^)())successBlock;
24
25 @end
26
27 #endif // IOS_WEB_WEB_STATE_JS_CRW_JS_POST_REQUEST_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698