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

Unified Diff: content/browser/service_worker/service_worker_request_handler.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/service_worker/service_worker_request_handler.cc
diff --git a/content/browser/service_worker/service_worker_request_handler.cc b/content/browser/service_worker/service_worker_request_handler.cc
index 0195e32ddbd357d7cfb90cebda1a51666b373fc3..7157aa540a8a26358c59dd8db4b491a9482a9244 100644
--- a/content/browser/service_worker/service_worker_request_handler.cc
+++ b/content/browser/service_worker/service_worker_request_handler.cc
@@ -14,7 +14,7 @@
#include "content/browser/service_worker/service_worker_provider_host.h"
#include "content/browser/service_worker/service_worker_registration.h"
#include "content/browser/service_worker/service_worker_url_request_job.h"
-#include "content/common/resource_request_body.h"
+#include "content/common/resource_request_body_impl.h"
#include "content/common/service_worker/service_worker_types.h"
#include "content/common/service_worker/service_worker_utils.h"
#include "content/public/browser/resource_context.h"
@@ -66,7 +66,7 @@ void FinalizeHandlerInitialization(
ResourceType resource_type,
RequestContextType request_context_type,
RequestContextFrameType frame_type,
- scoped_refptr<ResourceRequestBody> body) {
+ scoped_refptr<ResourceRequestBodyImpl> body) {
if (skip_service_worker) {
// TODO(horo): Does this work properly for PlzNavigate?
if (ServiceWorkerUtils::IsMainResourceType(resource_type)) {
@@ -101,7 +101,7 @@ void ServiceWorkerRequestHandler::InitializeForNavigation(
ResourceType resource_type,
RequestContextType request_context_type,
RequestContextFrameType frame_type,
- scoped_refptr<ResourceRequestBody> body) {
+ scoped_refptr<ResourceRequestBodyImpl> body) {
CHECK(IsBrowserSideNavigationEnabled());
// Only create a handler when there is a ServiceWorkerNavigationHandlerCore
@@ -153,7 +153,7 @@ void ServiceWorkerRequestHandler::InitializeHandler(
ResourceType resource_type,
RequestContextType request_context_type,
RequestContextFrameType frame_type,
- scoped_refptr<ResourceRequestBody> body) {
+ scoped_refptr<ResourceRequestBodyImpl> body) {
// Create the handler even for insecure HTTP since it's used in the
// case of redirect to HTTPS.
if (!request->url().SchemeIsHTTPOrHTTPS() &&

Powered by Google App Engine
This is Rietveld 408576698