Index: content/browser/service_worker/service_worker_info.cc |
diff --git a/content/browser/service_worker/service_worker_info.cc b/content/browser/service_worker/service_worker_info.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8c36efdd1ee5b734b686fcc1f8eb6c479c9a95ff |
--- /dev/null |
+++ b/content/browser/service_worker/service_worker_info.cc |
@@ -0,0 +1,46 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/service_worker/service_worker_info.h" |
+ |
+namespace content { |
+ |
+ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() |
+ : is_null(true), |
+ status(ServiceWorkerVersion::STOPPED), |
+ process_id(-1), |
+ thread_id(-1) {} |
+ |
+ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( |
+ ServiceWorkerVersion::Status status, |
+ int process_id, |
+ int thread_id) |
+ : is_null(false), |
+ status(status), |
+ process_id(process_id), |
+ thread_id(thread_id) {} |
+ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {} |
+ |
+ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( |
+ const GURL& script_url, |
+ const GURL& pattern, |
+ const ServiceWorkerVersionInfo& active_version, |
+ const ServiceWorkerVersionInfo& pending_version) |
+ : script_url(script_url), |
+ pattern(pattern), |
+ active_version(active_version), |
+ pending_version(pending_version) {} |
+ |
+ServiceWorkerRegistrationInfo& ServiceWorkerRegistrationInfo::operator=( |
+ const ServiceWorkerRegistrationInfo& other) { |
+ script_url = other.script_url; |
+ pattern = other.pattern; |
+ active_version = other.active_version; |
+ pending_version = other.pending_version; |
+ return *this; |
+} |
+ |
+ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} |
+ |
+} // namespace content |