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

Unified 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: rest of the commetns Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/web_state/js/crw_js_post_request_loader.h
diff --git a/ios/web/web_state/js/crw_js_post_request_loader.h b/ios/web/web_state/js/crw_js_post_request_loader.h
new file mode 100644
index 0000000000000000000000000000000000000000..13297e15188595a88e67da9125620a3c3457b88d
--- /dev/null
+++ b/ios/web/web_state/js/crw_js_post_request_loader.h
@@ -0,0 +1,18 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_WEB_STATE_JS_CRW_JS_HTML_LOADER_H_
Eugene But (OOO till 7-30) 2015/10/08 17:46:32 This does not match filename
stkhapugin 2015/12/03 15:43:01 Done.
+#define IOS_WEB_WEB_STATE_JS_CRW_JS_HTML_LOADER_H_
+
+#import <WebKit/WKWebView.h>
+
+// Class to load POST requests in a provided web view via JavaScript.
+@interface CRWJSPOSTRequestLoader : NSObject
Eugene But (OOO till 7-30) 2015/10/08 17:46:32 Do we need a class here? Can we have a function in
stkhapugin 2015/12/03 15:43:00 We need a class here because we want to cache the
+
+// Asynchronously loads a POST |request| in provided |webView|.
+- (void)loadPOSTRequest:(NSURLRequest*)request inWebView:(WKWebView*)webView;
Eugene But (OOO till 7-30) 2015/10/08 17:46:32 This needs a unit test
stkhapugin 2015/12/03 15:43:01 Done.
+
+@end
+
+#endif // IOS_WEB_WEB_STATE_JS_CRW_JS_HTML_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698