Chromium Code Reviews| Index: content/renderer/render_view_impl.cc |
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
| index f974ed820e51fb49e2e62e48970457bc47670f1f..8b104d844aff56620b243cc5aadf65df72d73e2a 100644 |
| --- a/content/renderer/render_view_impl.cc |
| +++ b/content/renderer/render_view_impl.cc |
| @@ -146,6 +146,7 @@ |
| #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h" |
| +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebHTTPBody.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebImage.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConnection00Handler.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConnection00HandlerClient.h" |
| @@ -235,6 +236,7 @@ using WebKit::WebFormElement; |
| using WebKit::WebFrame; |
| using WebKit::WebGraphicsContext3D; |
| using WebKit::WebHistoryItem; |
| +using WebKit::WebHTTPBody; |
| using WebKit::WebIconURL; |
| using WebKit::WebImage; |
| using WebKit::WebInputElement; |
| @@ -1088,6 +1090,19 @@ void RenderViewImpl::OnNavigate(const ViewMsg_Navigate_Params& params) { |
| WebString::fromUTF8(i.values())); |
| } |
| } |
| + |
| + if (params.is_post) { |
| + request.setHTTPMethod(WebString::fromUTF8("POST")); |
| + |
| + // set post data |
|
jam
2012/07/27 23:36:15
nit: capitalization and period per the style guide
|
| + WebHTTPBody http_body; |
| + http_body.initialize(); |
| + http_body.appendData(WebData( |
| + ¶ms.browser_initiated_post_data.front(), |
| + params.browser_initiated_post_data.size())); |
| + request.setHTTPBody(http_body); |
| + } |
| + |
| main_frame->loadRequest(request); |
| } |