1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/service_worker/service_worker_info.h"
7 #include "content/common/service_worker/service_worker_types.h"
8 #include "ipc/ipc_message.h"
12 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
13 : running_status(ServiceWorkerVersion::STOPPED
),
14 status(ServiceWorkerVersion::NEW
),
15 version_id(kInvalidServiceWorkerVersionId
),
18 devtools_agent_route_id(MSG_ROUTING_NONE
) {
21 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
22 ServiceWorkerVersion::RunningStatus running_status
,
23 ServiceWorkerVersion::Status status
,
24 const GURL
& script_url
,
28 int devtools_agent_route_id
)
29 : running_status(running_status
),
31 script_url(script_url
),
32 version_id(version_id
),
33 process_id(process_id
),
35 devtools_agent_route_id(devtools_agent_route_id
) {
38 ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {}
40 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo() {}
42 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
44 int64 registration_id
,
45 const ServiceWorkerVersionInfo
& active_version
,
46 const ServiceWorkerVersionInfo
& waiting_version
,
47 const ServiceWorkerVersionInfo
& installing_version
)
49 registration_id(registration_id
),
50 active_version(active_version
),
51 waiting_version(waiting_version
),
52 installing_version(installing_version
) {
55 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
57 } // namespace content