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

Unified Diff: content/browser/loader/resource_loader.cc

Issue 1867293004: Set service worker response info data for foreign fetch intercepted fetches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ff-check-origin
Patch Set: Created 4 years, 8 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 | « no previous file | content/browser/service_worker/foreign_fetch_request_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_loader.cc
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc
index 40e1f2a60746f96da3530f967c37a3dd82ee3edf..ca8d7b75f4a2f2c26bc0baec629bce6d12a19115 100644
--- a/content/browser/loader/resource_loader.cc
+++ b/content/browser/loader/resource_loader.cc
@@ -21,6 +21,7 @@
#include "content/browser/loader/resource_loader_delegate.h"
#include "content/browser/loader/resource_request_info_impl.h"
#include "content/browser/service_worker/service_worker_request_handler.h"
+#include "content/browser/service_worker/service_worker_response_info.h"
#include "content/browser/ssl/ssl_client_auth_handler.h"
#include "content/browser/ssl/ssl_manager.h"
#include "content/browser/ssl/ssl_policy.h"
@@ -103,9 +104,9 @@ void PopulateResourceResponse(ResourceRequestInfoImpl* info,
content::ResourceRequestInfo::ForRequest(request);
if (request_info)
response->head.is_using_lofi = request_info->IsUsingLoFi();
- if (ServiceWorkerRequestHandler* handler =
- ServiceWorkerRequestHandler::GetHandler(request)) {
- handler->GetExtraResponseInfo(&response->head);
+ if (ServiceWorkerResponseInfo* service_worker_info =
mmenke 2016/04/21 18:30:31 Please move declaration of ServiceWorkerResponseIn
Marijn Kruisselbrink 2016/04/21 19:20:45 Done
+ ServiceWorkerResponseInfo::ForRequest(request)) {
+ service_worker_info->GetExtraResponseInfo(&response->head);
}
AppCacheInterceptor::GetExtraResponseInfo(
request, &response->head.appcache_id,
« no previous file with comments | « no previous file | content/browser/service_worker/foreign_fetch_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698