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

Unified Diff: content/common/service_worker/service_worker_provider_host_info.cc

Issue 2891903002: ServiceWorker: Keep info as a member of ServiceWorkerProviderHost (Closed)
Patch Set: Rebased Created 3 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
« no previous file with comments | « content/common/service_worker/service_worker_provider_host_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_worker/service_worker_provider_host_info.cc
diff --git a/content/common/service_worker/service_worker_provider_host_info.cc b/content/common/service_worker/service_worker_provider_host_info.cc
index 04a18876e27c825fc2f5ca98ea9b1c45f78666a3..b4297c066870502ac6b298849a98fc863fed9587 100644
--- a/content/common/service_worker/service_worker_provider_host_info.cc
+++ b/content/common/service_worker/service_worker_provider_host_info.cc
@@ -4,16 +4,27 @@
#include "content/common/service_worker/service_worker_provider_host_info.h"
+#include "ipc/ipc_message.h"
+
namespace content {
-ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo() {}
+ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo()
+ : provider_id(kInvalidServiceWorkerProviderId),
+ route_id(MSG_ROUTING_NONE),
+ type(SERVICE_WORKER_PROVIDER_UNKNOWN),
+ is_parent_frame_secure(false) {}
ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo(
ServiceWorkerProviderHostInfo&& other)
: provider_id(other.provider_id),
route_id(other.route_id),
type(other.type),
- is_parent_frame_secure(other.is_parent_frame_secure) {}
+ is_parent_frame_secure(other.is_parent_frame_secure) {
+ other.provider_id = kInvalidServiceWorkerProviderId;
+ other.route_id = MSG_ROUTING_NONE;
+ other.type = SERVICE_WORKER_PROVIDER_UNKNOWN;
+ other.is_parent_frame_secure = false;
+}
ServiceWorkerProviderHostInfo::ServiceWorkerProviderHostInfo(
int provider_id,
« no previous file with comments | « content/common/service_worker/service_worker_provider_host_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698