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

Unified Diff: content/public/common/page_state.cc

Issue 2038813003: Making ResourceRequestBody part of //content's public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 6 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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/resource_request_body.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/page_state.cc
diff --git a/content/public/common/page_state.cc b/content/public/common/page_state.cc
index 5dddc498277983436c9422f4ec03e58d0d22694f..b082d54c91d548b4d6b77f81a458f3c23a887a5a 100644
--- a/content/public/common/page_state.cc
+++ b/content/public/common/page_state.cc
@@ -87,12 +87,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 ResourceRequestBody();
+ state.top.http_body.request_body = new ResourceRequestBodyImpl();
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 ResourceRequestBody();
+ state.top.http_body.request_body = new ResourceRequestBodyImpl();
state.top.http_body.request_body->AppendFileRange(
*optional_body_file_path,
0, std::numeric_limits<uint64_t>::max(),
« no previous file with comments | « content/content_common.gypi ('k') | content/public/common/resource_request_body.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698