Chromium Code Reviews| 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 edd7b5552c95227a2980da067c8b71d17ea760ca..0fa75570fac86205d3b7a83321c42057272533f7 100644 |
| --- a/content/browser/frame_host/navigation_handle_impl.h |
| +++ b/content/browser/frame_host/navigation_handle_impl.h |
| @@ -8,6 +8,7 @@ |
| #include "content/public/browser/navigation_handle.h" |
| #include "base/macros.h" |
| +#include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "base/memory/scoped_vector.h" |
| #include "content/browser/frame_host/render_frame_host_impl.h" |
| @@ -19,6 +20,8 @@ namespace content { |
| class NavigatorDelegate; |
| struct NavigationRequestInfo; |
| +class ServiceWorkerContext; |
|
michaeln
2015/10/01 01:42:15
i don't think this forward is needed
Fabrice (no longer in Chrome)
2015/10/01 18:29:55
Done.
|
| +class ServiceWorkerContextWrapper; |
| // This class keeps track of a single navigation. It is created upon receipt of |
| // a DidStartProvisionalLoad IPC in a RenderFrameHost. The RenderFrameHost owns |
| @@ -55,9 +58,11 @@ struct NavigationRequestInfo; |
| // the RenderFrameHost still apply. |
| class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
| public: |
| - static scoped_ptr<NavigationHandleImpl> Create(const GURL& url, |
| - bool is_main_frame, |
| - NavigatorDelegate* delegate); |
| + static scoped_ptr<NavigationHandleImpl> Create( |
| + const GURL& url, |
| + bool is_main_frame, |
| + NavigatorDelegate* delegate, |
| + int service_worker_provider_id); |
|
clamy
2015/10/01 12:41:26
I do not like having the service_worker_provider_i
Fabrice (no longer in Chrome)
2015/10/01 18:29:55
That was my first idea too, but the NavigationRequ
michaeln
2015/10/01 23:11:11
I think your talking about the construction sequen
clamy
2015/10/02 10:34:44
While it does look straightforward to alter the co
Fabrice (no longer in Chrome)
2015/10/02 16:37:34
That works thanks!
|
| ~NavigationHandleImpl() override; |
| // NavigationHandle implementation: |
| @@ -142,8 +147,9 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
| }; |
| NavigationHandleImpl(const GURL& url, |
| - const bool is_main_frame, |
| - NavigatorDelegate* delegate); |
| + bool is_main_frame, |
| + NavigatorDelegate* delegate, |
| + int service_worker_provider_id); |
| // See NavigationHandle for a description of those member variables. |
| GURL url_; |
| @@ -171,6 +177,12 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
| // A list of Throttles registered for this navigation. |
| ScopedVector<NavigationThrottle> throttles_; |
| + // PlzNavigate |
| + // The SWProvider ID used for navigations. |
|
michaeln
2015/10/01 01:42:15
for non-plznav navigations, this should probably b
clamy
2015/10/01 12:41:26
nit: use the full class name for SWProvider. Also,
Fabrice (no longer in Chrome)
2015/10/01 18:29:54
Done.
|
| + int service_worker_provider_id_; |
| + |
| + scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
| }; |