OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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. |
| 4 |
| 5 #include "content/browser/service_worker/service_worker_info.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() |
| 10 : is_null(true), |
| 11 running_status(ServiceWorkerVersion::STOPPED), |
| 12 status(ServiceWorkerVersion::NEW), |
| 13 process_id(-1), |
| 14 thread_id(-1) {} |
| 15 |
| 16 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( |
| 17 ServiceWorkerVersion::RunningStatus running_status, |
| 18 ServiceWorkerVersion::Status status, |
| 19 int process_id, |
| 20 int thread_id) |
| 21 : is_null(false), |
| 22 running_status(running_status), |
| 23 status(status), |
| 24 process_id(process_id), |
| 25 thread_id(thread_id) {} |
| 26 ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {} |
| 27 |
| 28 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( |
| 29 const GURL& script_url, |
| 30 const GURL& pattern, |
| 31 const ServiceWorkerVersionInfo& active_version, |
| 32 const ServiceWorkerVersionInfo& pending_version) |
| 33 : script_url(script_url), |
| 34 pattern(pattern), |
| 35 active_version(active_version), |
| 36 pending_version(pending_version) {} |
| 37 |
| 38 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} |
| 39 |
| 40 } // namespace content |
OLD | NEW |