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

Unified Diff: content/child/service_worker/service_worker_network_provider.h

Issue 2071433003: Reland: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised Created 4 years, 6 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/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 178adf5a1ceca4d0c48dc2d58a71f7590cb04e3e..1d09950af42642385034e911752bc11dcb5ef79b 100644
--- a/content/child/service_worker/service_worker_network_provider.h
+++ b/content/child/service_worker/service_worker_network_provider.h
@@ -15,7 +15,11 @@
#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 blink {
+class WebDataSource;
+class WebLocalFrame;
+} // namespace blink
namespace content {
@@ -46,15 +50,18 @@ class CONTENT_EXPORT ServiceWorkerNetworkProvider
static std::unique_ptr<ServiceWorkerNetworkProvider> CreateForNavigation(
int route_id,
const RequestNavigationParams& request_params,
- blink::WebSandboxFlags sandbox_flags,
+ blink::WebLocalFrame* frame,
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);
+ int browser_provider_id,
+ bool is_parent_frame_secure);
+ ServiceWorkerNetworkProvider(int route_id,
+ ServiceWorkerProviderType type,
+ bool is_parent_frame_secure);
ServiceWorkerNetworkProvider();
~ServiceWorkerNetworkProvider() override;

Powered by Google App Engine
This is Rietveld 408576698