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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 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/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 0fdb07d979809f193078c8b1901755d17646ab60..d1c1b1b0adc3fc3297109efc5a09d68f6c8ecf07 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -102,6 +102,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
is_transferring_ = is_transferring;
}
+ // PlzNavigate
+ void set_service_worker_provider_id(int service_worker_provider_id) {
+ service_worker_provider_id_ = service_worker_provider_id;
+ }
+
// Called when the URLRequest will start in the network stack.
NavigationThrottle::ThrottleCheckResult WillStartRequest(
bool is_post,
@@ -168,6 +173,13 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
// A list of Throttles registered for this navigation.
ScopedVector<NavigationThrottle> throttles_;
+ // PlzNavigate
+ // The ServiceWorkerProviderHost ID used for navigations.
+ // Set to kInvalidServiceWorkerProviderId for sandboxed frames and sync loads.
+ // This parameter is not used in the current navigation architecture, where it
+ // will always be kInvalidServiceWorkerProviderId.
+ int service_worker_provider_id_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
};

Powered by Google App Engine
This is Rietveld 408576698