Chromium Code Reviews| 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::Status status, | |
| 19 int process_id, | |
| 20 int thread_id); | |
| 21 ~ServiceWorkerVersionInfo(); | |
| 22 | |
| 23 bool is_null; | |
| 24 ServiceWorkerVersion::Status status; | |
| 25 int process_id; | |
| 26 int thread_id; | |
| 27 }; | |
| 28 | |
| 29 class ServiceWorkerRegistrationInfo { | |
| 30 public: | |
| 31 ServiceWorkerRegistrationInfo( | |
| 32 const GURL& script_url, | |
| 33 const GURL& pattern, | |
| 34 const ServiceWorkerVersionInfo& active_version, | |
| 35 const ServiceWorkerVersionInfo& pending_version_); | |
|
kinuko
2014/03/07 02:19:09
nit: pending_version_ -> pending_version (no trail
| |
| 36 ServiceWorkerRegistrationInfo& operator=( | |
| 37 const ServiceWorkerRegistrationInfo& other); | |
| 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 |