| Index: content/child/service_worker/service_worker_network_provider.h
|
| diff --git a/content/child/service_worker/service_worker_network_provider.h b/content/child/service_worker/service_worker_network_provider.h
|
| index ec1bdceca34fb20778b30459f41f8e7a1998512b..c34adf4fedc9fd730939d9fb7ee5e26e539789a3 100644
|
| --- a/content/child/service_worker/service_worker_network_provider.h
|
| +++ b/content/child/service_worker/service_worker_network_provider.h
|
| @@ -11,10 +11,12 @@
|
| #include "base/supports_user_data.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/service_worker/service_worker_types.h"
|
| +#include "third_party/WebKit/public/web/WebSandboxFlags.h"
|
|
|
| namespace content {
|
|
|
| class ServiceWorkerProviderContext;
|
| +struct RequestNavigationParams;
|
|
|
| // A unique provider_id is generated for each instance.
|
| // Instantiated prior to the main resource load being started and remains
|
| @@ -37,7 +39,19 @@ class CONTENT_EXPORT ServiceWorkerNetworkProvider
|
| static ServiceWorkerNetworkProvider* FromDocumentState(
|
| base::SupportsUserData* document_state);
|
|
|
| + static scoped_ptr<ServiceWorkerNetworkProvider> CreateForNavigation(
|
| + int route_id,
|
| + const RequestNavigationParams& request_params,
|
| + blink::WebSandboxFlags sandbox_flags,
|
| + bool content_initiated);
|
| +
|
| + // PlzNavigate
|
| + // The |browser_provider_id| is initialized by the browser for navigations.
|
| + ServiceWorkerNetworkProvider(int route_id,
|
| + ServiceWorkerProviderType type,
|
| + int browser_provider_id);
|
| ServiceWorkerNetworkProvider(int route_id, ServiceWorkerProviderType type);
|
| + ServiceWorkerNetworkProvider();
|
| ~ServiceWorkerNetworkProvider() override;
|
|
|
| int provider_id() const { return provider_id_; }
|
|
|