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

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

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.h
diff --git a/content/browser/service_worker/service_worker_info.h b/content/browser/service_worker/service_worker_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..68071a0f8db2a39e54eb5edc3250dc49a70debc0
--- /dev/null
+++ b/content/browser/service_worker/service_worker_info.h
@@ -0,0 +1,49 @@
+// 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.
+
+#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
+#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
+
+#include <vector>
+
+#include "content/browser/service_worker/service_worker_version.h"
+#include "url/gurl.h"
+
+namespace content {
+
+class ServiceWorkerVersionInfo {
+ public:
+ ServiceWorkerVersionInfo();
+ ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status,
+ ServiceWorkerVersion::Status status,
+ int process_id,
+ int thread_id);
+ ~ServiceWorkerVersionInfo();
+
+ bool is_null;
+ ServiceWorkerVersion::RunningStatus running_status;
+ ServiceWorkerVersion::Status status;
+ int process_id;
+ int thread_id;
+};
+
+class ServiceWorkerRegistrationInfo {
+ public:
+ ServiceWorkerRegistrationInfo(
+ const GURL& script_url,
+ const GURL& pattern,
+ const ServiceWorkerVersionInfo& active_version,
+ const ServiceWorkerVersionInfo& pending_version);
+ ~ServiceWorkerRegistrationInfo();
+
+ GURL script_url;
+ GURL pattern;
+
+ ServiceWorkerVersionInfo active_version;
+ ServiceWorkerVersionInfo pending_version;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_
« no previous file with comments | « content/browser/service_worker/service_worker_context_core.cc ('k') | content/browser/service_worker/service_worker_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698