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

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

Issue 2902653002: Get main frame and subframe AppCache loads to work. (Closed)
Patch Set: Fix compile failure by using the host_ member. Created 3 years, 7 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/loader/navigation_url_loader_network_service.cc
diff --git a/content/browser/loader/navigation_url_loader_network_service.cc b/content/browser/loader/navigation_url_loader_network_service.cc
index f32156a4074b47cda6e106d7ed12dbfde21c131b..f517c4ebdad72b33a1a67969b3eab7ed4127ba50 100644
--- a/content/browser/loader/navigation_url_loader_network_service.cc
+++ b/content/browser/loader/navigation_url_loader_network_service.cc
@@ -9,6 +9,8 @@
#include "base/memory/ptr_util.h"
#include "base/trace_event/trace_event.h"
#include "content/browser/appcache/appcache_navigation_handle.h"
+#include "content/browser/appcache/appcache_navigation_handle_core.h"
+#include "content/browser/appcache/appcache_url_loader_factory.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
#include "content/browser/frame_host/frame_tree_node.h"
#include "content/browser/frame_host/navigation_request_info.h"
@@ -107,6 +109,9 @@ void PrepareNavigationStartOnIO(
} else {
if (appcache_handle_core) {
factory = url_loader_factory_getter->GetAppCacheFactory()->get();
michaeln 2017/05/24 00:59:32 I think I see a problem with this function. It see
+ // TODO(ananta)
+ // Change this when we don't use URLLoaderFactories in the browser.
+ AppCacheURLLoaderFactory::SetAppCacheHost(appcache_handle_core->host());
ananta 2017/05/24 02:14:03 The plan for now is to have each factory call the
} else {
factory = url_loader_factory_getter->GetNetworkFactory()->get();
}

Powered by Google App Engine
This is Rietveld 408576698