OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_CREATIO
N_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_CREATIO
N_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/browser/loader/navigation_factory_creation_data.h" |
| 10 #include "content/common/url_loader_factory.mojom.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 // This class is used to route network requests to ServiceWorkers when |
| 15 // --enable-network-service is used. |
| 16 class ServiceWorkerURLLoaderFactoryCreation { |
| 17 public: |
| 18 static mojom::URLLoaderFactoryPtrInfo InitializeForNavigation( |
| 19 const NavigationFactoryCreationData& creation_data); |
| 20 |
| 21 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLLoaderFactoryCreation); |
| 23 }; |
| 24 |
| 25 } // namespace content |
| 26 |
| 27 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_CREA
TION_H_ |
OLD | NEW |