Add key_mobile_sites_cycler.py that contains page sets that does not do scrolling.
[chromium-blink-merge.git] / content / browser / service_worker / service_worker_info.cc
blob1efe110c62fbb8ce5737f333a7ea98632b9e1dd3
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"
10 namespace content {
12 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
13 : running_status(ServiceWorkerVersion::STOPPED),
14 status(ServiceWorkerVersion::NEW),
15 version_id(kInvalidServiceWorkerVersionId),
16 process_id(-1),
17 thread_id(-1),
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,
25 int64 version_id,
26 int process_id,
27 int thread_id,
28 int devtools_agent_route_id)
29 : running_status(running_status),
30 status(status),
31 script_url(script_url),
32 version_id(version_id),
33 process_id(process_id),
34 thread_id(thread_id),
35 devtools_agent_route_id(devtools_agent_route_id) {
38 ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {}
40 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo()
41 : registration_id(kInvalidServiceWorkerRegistrationId),
42 stored_version_size_bytes(0) {
45 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
46 const GURL& pattern,
47 int64 registration_id,
48 const ServiceWorkerVersionInfo& active_version,
49 const ServiceWorkerVersionInfo& waiting_version,
50 const ServiceWorkerVersionInfo& installing_version,
51 int64_t stored_version_size_bytes)
52 : pattern(pattern),
53 registration_id(registration_id),
54 active_version(active_version),
55 waiting_version(waiting_version),
56 installing_version(installing_version),
57 stored_version_size_bytes(stored_version_size_bytes) {
60 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
62 } // namespace content