OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_NAVIGATION_PRELOAD_FETCHER
_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_NAVIGATION_PRELOAD_FETCHER
_H_ |
| 7 |
| 8 #include "content/common/service_worker/fetch_event_dispatcher.mojom.h" |
| 9 |
| 10 namespace net { |
| 11 class URLRequest; |
| 12 } // namespace net |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // Class for fetching navigation requests for ServiceWorkers. |
| 17 // TODO(horo): Revise link when this lands in the spec: |
| 18 // https://github.com/w3c/ServiceWorker/issues/920 |
| 19 class ServiceWorkerNavigationPreloadFetcher { |
| 20 public: |
| 21 static mojom::FetchEventPreloadHandlePtr Start( |
| 22 net::URLRequest* original_request); |
| 23 }; |
| 24 |
| 25 } // namespace content |
| 26 |
| 27 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_NAVIGATION_PRELOAD_FETC
HER_H_ |
OLD | NEW |