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

Unified Diff: content/browser/frame_host/navigation_handle_impl.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
Index: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 90e06f1c7327fa2255f7b40039de183d1ba86b71..a6267b6e28471d552d15d095eec511c5f3964c4c 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -13,7 +13,7 @@
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/service_worker/service_worker_navigation_handle.h"
#include "content/common/frame_messages.h"
-#include "content/common/resource_request_body.h"
+#include "content/common/resource_request_body_impl.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/content_client.h"
@@ -255,13 +255,13 @@ NavigationHandleImpl::CallWillStartRequestForTesting(
bool is_external_protocol) {
NavigationThrottle::ThrottleCheckResult result = NavigationThrottle::DEFER;
- scoped_refptr<ResourceRequestBody> resource_request_body;
+ scoped_refptr<ResourceRequestBodyImpl> resource_request_body;
std::string method = "GET";
if (is_post) {
method = "POST";
std::string body = "test=body";
- resource_request_body = new ResourceRequestBody();
+ resource_request_body = new ResourceRequestBodyImpl();
resource_request_body->AppendBytes(body.data(), body.size());
}
@@ -304,7 +304,7 @@ void NavigationHandleImpl::InitServiceWorkerHandle(
void NavigationHandleImpl::WillStartRequest(
const std::string& method,
- scoped_refptr<content::ResourceRequestBody> resource_request_body,
+ scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body,
const Referrer& sanitized_referrer,
bool has_user_gesture,
ui::PageTransition transition,
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698