Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / content / browser / service_worker / service_worker_info.cc
blobd1ef56ec8a4a1ea257d94d3e0aec2021ad8ad07a
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 : is_null(true),
14 running_status(ServiceWorkerVersion::STOPPED),
15 status(ServiceWorkerVersion::NEW),
16 version_id(kInvalidServiceWorkerVersionId),
17 process_id(-1),
18 thread_id(-1),
19 devtools_agent_route_id(MSG_ROUTING_NONE) {
22 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
23 ServiceWorkerVersion::RunningStatus running_status,
24 ServiceWorkerVersion::Status status,
25 const GURL& script_url,
26 int64 version_id,
27 int process_id,
28 int thread_id,
29 int devtools_agent_route_id)
30 : is_null(false),
31 running_status(running_status),
32 status(status),
33 script_url(script_url),
34 version_id(version_id),
35 process_id(process_id),
36 thread_id(thread_id),
37 devtools_agent_route_id(devtools_agent_route_id) {
40 ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {}
42 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo() {}
44 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
45 const GURL& pattern,
46 int64 registration_id,
47 const ServiceWorkerVersionInfo& active_version,
48 const ServiceWorkerVersionInfo& waiting_version,
49 const ServiceWorkerVersionInfo& installing_version)
50 : pattern(pattern),
51 registration_id(registration_id),
52 active_version(active_version),
53 waiting_version(waiting_version),
54 installing_version(installing_version) {
57 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
59 } // namespace content