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

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

Issue 1399363004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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..aa64ac001d45d72d9f019f5350b067bcfe6c2bab 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -18,6 +18,7 @@
namespace content {
class NavigatorDelegate;
+class ServiceWorkerNavigationHandle;
struct NavigationRequestInfo;
// This class keeps track of a single navigation. It is created upon receipt of
@@ -102,6 +103,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
is_transferring_ = is_transferring;
}
+ // PlzNavigate
+ ServiceWorkerNavigationHandle* service_worker_handle() const {
+ return service_worker_handle_.get();
+ }
+
// Called when the URLRequest will start in the network stack.
NavigationThrottle::ThrottleCheckResult WillStartRequest(
bool is_post,
@@ -168,6 +174,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
// A list of Throttles registered for this navigation.
ScopedVector<NavigationThrottle> throttles_;
+ // PlzNavigate
+ // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a
+ // corresponding ServiceWorkerNetworkProvider is created in the renderer.
michaeln 2015/10/21 20:07:28 Maybe include in the doc comment that this needs t
+ scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
};

Powered by Google App Engine
This is Rietveld 408576698