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..6a1aed2202c6e92fa5c3e67a9f860b7f422f5271 |
--- /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::Status status, |
+ int process_id, |
+ int thread_id); |
+ ~ServiceWorkerVersionInfo(); |
+ |
+ bool is_null; |
+ 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_); |
kinuko
2014/03/07 02:19:09
nit: pending_version_ -> pending_version (no trail
|
+ ServiceWorkerRegistrationInfo& operator=( |
+ const ServiceWorkerRegistrationInfo& other); |
+ ~ServiceWorkerRegistrationInfo(); |
+ |
+ GURL script_url; |
+ GURL pattern; |
+ |
+ ServiceWorkerVersionInfo active_version; |
+ ServiceWorkerVersionInfo pending_version; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |