Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1492)

Unified Diff: content/browser/service_worker/service_worker_info.cc

Issue 182383008: Create chrome://serviceworker-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to ToT Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1ce784fc32af6b39e44573cd5ee9dab5c95e5596
--- /dev/null
+++ b/content/browser/service_worker/service_worker_info.cc
@@ -0,0 +1,40 @@
+// 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),
+ running_status(ServiceWorkerVersion::STOPPED),
+ status(ServiceWorkerVersion::NEW),
+ process_id(-1),
+ thread_id(-1) {}
+
+ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
+ ServiceWorkerVersion::RunningStatus running_status,
+ ServiceWorkerVersion::Status status,
+ int process_id,
+ int thread_id)
+ : is_null(false),
+ running_status(running_status),
+ 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() {}
+
+} // namespace content
« no previous file with comments | « content/browser/service_worker/service_worker_info.h ('k') | content/browser/service_worker/service_worker_internals_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698