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

Unified Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 2009453002: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: selfreview Created 4 years, 7 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/service_worker/service_worker_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
index 0372b11dded2c624f8e78d0a17c2be358d9d0911..b097f4b54c1157c9508ed46307b21f0397df83a4 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -72,6 +72,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
int route_id,
int provider_id,
ServiceWorkerProviderType provider_type,
+ bool is_parent_frame_secure,
base::WeakPtr<ServiceWorkerContextCore> context,
ServiceWorkerDispatcherHost* dispatcher_host);
virtual ~ServiceWorkerProviderHost();
@@ -82,6 +83,11 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
int frame_id() const;
int route_id() const { return route_id_; }
+ bool is_parent_frame_secure() const { return is_parent_frame_secure_; }
+ void set_parent_frame_secure(bool is_parent_frame_secure) {
+ is_parent_frame_secure_ = is_parent_frame_secure;
+ }
+
bool IsHostToRunningServiceWorker() {
return running_hosted_version_.get() != NULL;
}
@@ -307,6 +313,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
int render_thread_id_;
int provider_id_;
ServiceWorkerProviderType provider_type_;
+ bool is_parent_frame_secure_;
GURL document_url_;
GURL topmost_frame_url_;

Powered by Google App Engine
This is Rietveld 408576698