Index: content/browser/service_worker/service_worker_url_loader_factory_creation.h |
diff --git a/content/browser/service_worker/service_worker_url_loader_factory_creation.h b/content/browser/service_worker/service_worker_url_loader_factory_creation.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aa09d2f719f6ab702f54feb258d2cfce5eb68284 |
--- /dev/null |
+++ b/content/browser/service_worker/service_worker_url_loader_factory_creation.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_CREATION_H_ |
+#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_CREATION_H_ |
+ |
+#include "base/macros.h" |
+#include "content/browser/loader/navigation_factory_creation_data.h" |
+#include "content/common/url_loader_factory.mojom.h" |
+ |
+namespace content { |
+ |
+// This class is used to route network requests to ServiceWorkers when |
+// --enable-network-service is used. |
+class ServiceWorkerURLLoaderFactoryCreation { |
+ public: |
+ static mojom::URLLoaderFactoryPtrInfo InitializeForNavigation( |
+ const NavigationFactoryCreationData& creation_data); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLLoaderFactoryCreation); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_CREATION_H_ |