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..4e6c56ce2b8759f43ab94b70c06620bb500e3722 |
--- /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 { |
kinuko
2014/03/05 03:43:20
nit: could be a struct
|
+ public: |
+ ServiceWorkerVersionInfo(); |
+ ServiceWorkerVersionInfo(ServiceWorkerVersion::Status status, |
+ int process_id, |
+ int thread_id); |
+ ~ServiceWorkerVersionInfo(); |
+ |
+ bool is_null_; |
kinuko
2014/03/05 03:43:20
no trailing '_' for public member variables
alecflett
2014/03/05 21:41:20
Done.
|
+ 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& operator=( |
+ const ServiceWorkerRegistrationInfo& other); |
kinuko
2014/03/05 03:43:20
Why do we need explicit assignment operator?
alecflett
2014/03/05 21:41:20
in order to push_back() into a vector - it's becau
kinuko
2014/03/07 09:20:18
Btw are you sure about this? I've seen std::vector
|
+ ~ServiceWorkerRegistrationInfo(); |
+ |
+ GURL script_url_; |
+ GURL pattern_; |
+ |
+ ServiceWorkerVersionInfo active_version_; |
+ ServiceWorkerVersionInfo pending_version_; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |