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

Unified Diff: content/browser/service_worker/service_worker_fetch_dispatcher.cc

Issue 2451663002: Add check for PlzNavigate in ServiceWorkerFetchDispatcher. (Closed)
Patch Set: add NOTIMPLEMENTED() 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_fetch_dispatcher.cc
diff --git a/content/browser/service_worker/service_worker_fetch_dispatcher.cc b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
index 8eac483c670676423c6a39180151c395431ff17f..c6810ef22f171dfa8faedc56dd62e2bb0a1824fe 100644
--- a/content/browser/service_worker/service_worker_fetch_dispatcher.cc
+++ b/content/browser/service_worker/service_worker_fetch_dispatcher.cc
@@ -22,6 +22,7 @@
#include "content/common/service_worker/service_worker_utils.h"
#include "content/common/url_loader.mojom.h"
#include "content/common/url_loader_factory.mojom.h"
+#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/content_features.h"
#include "net/log/net_log.h"
#include "net/log/net_log_capture_mode.h"
@@ -295,6 +296,11 @@ void ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(
// Origin-Trial for NavigationPreload.
return;
}
+ if (IsBrowserSideNavigationEnabled()) {
+ // TODO(horo): Support NavigationPreload with PlzNavigate.
+ NOTIMPLEMENTED();
+ return;
+ }
DCHECK(!url_loader_factory_getter.is_null());
mojom::URLLoaderFactoryPtr factory;
url_loader_factory_getter.Run(mojo::GetProxy(&factory));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698