OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "content/browser/service_worker/service_worker_version.h" |
| 11 #include "url/gurl.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class ServiceWorkerVersionInfo { |
| 16 public: |
| 17 ServiceWorkerVersionInfo(); |
| 18 ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status, |
| 19 ServiceWorkerVersion::Status status, |
| 20 int process_id, |
| 21 int thread_id); |
| 22 ~ServiceWorkerVersionInfo(); |
| 23 |
| 24 bool is_null; |
| 25 ServiceWorkerVersion::RunningStatus running_status; |
| 26 ServiceWorkerVersion::Status status; |
| 27 int process_id; |
| 28 int thread_id; |
| 29 }; |
| 30 |
| 31 class ServiceWorkerRegistrationInfo { |
| 32 public: |
| 33 ServiceWorkerRegistrationInfo( |
| 34 const GURL& script_url, |
| 35 const GURL& pattern, |
| 36 const ServiceWorkerVersionInfo& active_version, |
| 37 const ServiceWorkerVersionInfo& pending_version); |
| 38 ~ServiceWorkerRegistrationInfo(); |
| 39 |
| 40 GURL script_url; |
| 41 GURL pattern; |
| 42 |
| 43 ServiceWorkerVersionInfo active_version; |
| 44 ServiceWorkerVersionInfo pending_version; |
| 45 }; |
| 46 |
| 47 } // namespace content |
| 48 |
| 49 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_INFO_H_ |
OLD | NEW |