Index: content/public/common/page_state.cc |
diff --git a/content/public/common/page_state.cc b/content/public/common/page_state.cc |
index 5c58920a114410885a7bd325f0bc2b988510f627..add79b7639b3bf655d36aa6ae5100ef7836fc4e8 100644 |
--- a/content/public/common/page_state.cc |
+++ b/content/public/common/page_state.cc |
@@ -10,6 +10,7 @@ |
#include "base/strings/nullable_string16.h" |
#include "base/strings/utf_string_conversions.h" |
#include "content/common/page_state_serialization.h" |
+#include "content/public/common/resource_request_body.h" |
namespace content { |
namespace { |
@@ -85,12 +86,12 @@ PageState PageState::CreateForTesting( |
if (optional_body_data || optional_body_file_path) { |
if (optional_body_data) { |
std::string body_data(optional_body_data); |
- state.top.http_body.request_body = new ResourceRequestBodyImpl(); |
+ state.top.http_body.request_body = new ResourceRequestBody(); |
state.top.http_body.request_body->AppendBytes(body_data.data(), |
body_data.size()); |
} |
if (optional_body_file_path) { |
- state.top.http_body.request_body = new ResourceRequestBodyImpl(); |
+ state.top.http_body.request_body = new ResourceRequestBody(); |
state.top.http_body.request_body->AppendFileRange( |
*optional_body_file_path, |
0, std::numeric_limits<uint64_t>::max(), |