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

Unified Diff: content/browser/service_worker/service_worker_navigation_preload_fetcher.h

Issue 2410333006: Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). (Closed)
Patch Set: incorporated falken's comment Created 4 years, 2 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/service_worker/service_worker_navigation_preload_fetcher.h
diff --git a/content/browser/service_worker/service_worker_navigation_preload_fetcher.h b/content/browser/service_worker/service_worker_navigation_preload_fetcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..af337f8b852c507d49890f0d5928c8a9a04bc353
--- /dev/null
+++ b/content/browser/service_worker/service_worker_navigation_preload_fetcher.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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_NAVIGATION_PRELOAD_FETCHER_H_
+#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_NAVIGATION_PRELOAD_FETCHER_H_
+
+#include "content/common/service_worker/fetch_event_dispatcher.mojom.h"
+
+namespace net {
+class URLRequest;
+} // namespace net
+
+namespace content {
+
+// Class for fetching navigation requests for ServiceWorkers.
+// TODO(horo): Revise link when this lands in the spec:
+// https://github.com/w3c/ServiceWorker/issues/920
+class ServiceWorkerNavigationPreloadFetcher {
+ public:
+ static mojom::FetchEventPreloadHandlePtr Start(
+ net::URLRequest* original_request);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_NAVIGATION_PRELOAD_FETCHER_H_

Powered by Google App Engine
This is Rietveld 408576698