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

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: Address review comments 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
« no previous file with comments | « content/browser/appcache/mock_appcache_storage.cc ('k') | content/browser/url_loader_factory_getter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e9e9ac9cc368356c113185b8715cc05bead861be..e358cb19ec3e8e478b6e9cae5d94e20f4eb0d576 100644
--- a/content/browser/loader/navigation_url_loader_network_service.cc
+++ b/content/browser/loader/navigation_url_loader_network_service.cc
@@ -9,6 +9,7 @@
#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_request_handler.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"
@@ -166,7 +167,11 @@ class NavigationURLLoaderNetworkService::URLLoaderRequestController {
}
if (appcache_handle_core) {
- // TODO: add appcache code here.
+ std::unique_ptr<URLLoaderRequestHandler> appcache_handler =
+ AppCacheRequestHandler::InitializeForNavigationNetworkService(
+ *resource_request_, appcache_handle_core);
+ if (appcache_handler)
+ handlers_.push_back(std::move(appcache_handler));
}
Restart(std::move(url_loader_request), std::move(url_loader_client_ptr_));
« no previous file with comments | « content/browser/appcache/mock_appcache_storage.cc ('k') | content/browser/url_loader_factory_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698