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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 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 cb8deacafa43305a6513725ab2d42e7f36cbfc3e..789bf9be0bc363987c4c8c413f2a0bfa2ac1170c 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -27,13 +27,13 @@
#include "content/browser/service_worker/service_worker_navigation_handle.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/frame_messages.h"
-#include "content/common/resource_request_body_impl.h"
#include "content/common/site_isolation_policy.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/navigation_ui_data.h"
#include "content/public/browser/site_instance.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/content_client.h"
+#include "content/public/common/resource_request_body.h"
#include "content/public/common/url_constants.h"
#include "net/base/net_errors.h"
#include "net/url_request/redirect_info.h"
@@ -424,13 +424,13 @@ NavigationHandleImpl::CallWillStartRequestForTesting(
bool is_external_protocol) {
NavigationThrottle::ThrottleCheckResult result = NavigationThrottle::DEFER;
- scoped_refptr<ResourceRequestBodyImpl> resource_request_body;
+ scoped_refptr<ResourceRequestBody> resource_request_body;
std::string method = "GET";
if (is_post) {
method = "POST";
std::string body = "test=body";
- resource_request_body = new ResourceRequestBodyImpl();
+ resource_request_body = new ResourceRequestBody();
resource_request_body->AppendBytes(body.data(), body.size());
}
@@ -552,7 +552,7 @@ void NavigationHandleImpl::InitAppCacheHandle(
void NavigationHandleImpl::WillStartRequest(
const std::string& method,
- scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body,
+ scoped_refptr<content::ResourceRequestBody> 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698