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

Unified Diff: content/browser/appcache/appcache_request_handler.h

Issue 2874663004: Provide skeleton functionality for AppCache handling in the network service. (Closed)
Patch Set: 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/appcache/appcache_request_handler.h
diff --git a/content/browser/appcache/appcache_request_handler.h b/content/browser/appcache/appcache_request_handler.h
index 3b7e16736d50b3198620f2e4367daa3bce0686e3..f6e1d2722d47b70b48e2a75037bc759888fc60a5 100644
--- a/content/browser/appcache/appcache_request_handler.h
+++ b/content/browser/appcache/appcache_request_handler.h
@@ -17,6 +17,7 @@
#include "content/browser/appcache/appcache_host.h"
#include "content/browser/appcache/appcache_service_impl.h"
#include "content/common/content_export.h"
+#include "content/common/url_loader_factory.mojom.h"
#include "content/public/common/resource_type.h"
namespace net {
@@ -26,9 +27,11 @@ class URLRequest;
namespace content {
class AppCacheJob;
+class AppCacheNavigationHandleCore;
class AppCacheRequest;
class AppCacheRequestHandlerTest;
class AppCacheURLRequestJob;
+class ResourceContext;
// An instance is created for each net::URLRequest. The instance survives all
// http transactions involved in the processing of its net::URLRequest, and is
@@ -69,6 +72,16 @@ class CONTENT_EXPORT AppCacheRequestHandler
type == RESOURCE_TYPE_SHARED_WORKER;
}
+ // PlzNavigate and --enable-network-service.
+ // Same as InitializeForNavigation() but instead of attaching to a URLRequest,
kinuko 2017/05/11 02:14:14 nit: Incomplete sentence
ananta 2017/05/11 02:30:24 Done.
+ static void InitializeForNavigationNetworkService(
+ std::unique_ptr<ResourceRequest> resource_request,
+ ResourceContext* resource_context,
+ AppCacheNavigationHandleCore* navigation_handle_core,
+ ResourceType resource_type,
+ base::Callback<void(mojom::URLLoaderFactoryPtrInfo,
+ std::unique_ptr<ResourceRequest>)> callback);
+
private:
friend class AppCacheHost;

Powered by Google App Engine
This is Rietveld 408576698