OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const ServiceWorkerRegistrationInfo& info) {} | 43 const ServiceWorkerRegistrationInfo& info) {} |
44 virtual void OnRegistrationFailed( | 44 virtual void OnRegistrationFailed( |
45 ServiceWorkerRegistration* registration) {} | 45 ServiceWorkerRegistration* registration) {} |
46 virtual void OnRegistrationFinishedUninstalling( | 46 virtual void OnRegistrationFinishedUninstalling( |
47 ServiceWorkerRegistration* registration) {} | 47 ServiceWorkerRegistration* registration) {} |
48 virtual void OnUpdateFound( | 48 virtual void OnUpdateFound( |
49 ServiceWorkerRegistration* registration) {} | 49 ServiceWorkerRegistration* registration) {} |
50 virtual void OnSkippedWaiting(ServiceWorkerRegistration* registation) {} | 50 virtual void OnSkippedWaiting(ServiceWorkerRegistration* registation) {} |
51 }; | 51 }; |
52 | 52 |
53 ServiceWorkerRegistration(const GURL& pattern, | 53 ServiceWorkerRegistration(const ServiceWorkerRegistrationOptions& options, |
54 int64_t registration_id, | 54 int64_t registration_id, |
55 base::WeakPtr<ServiceWorkerContextCore> context); | 55 base::WeakPtr<ServiceWorkerContextCore> context); |
56 | 56 |
57 int64_t id() const { return registration_id_; } | 57 int64_t id() const { return registration_id_; } |
58 const GURL& pattern() const { return pattern_; } | 58 const GURL& pattern() const { return pattern_; } |
59 | 59 |
60 bool is_deleted() const { return is_deleted_; } | 60 bool is_deleted() const { return is_deleted_; } |
61 void set_is_deleted(bool deleted) { is_deleted_ = deleted; } | 61 void set_is_deleted(bool deleted) { is_deleted_ = deleted; } |
62 | 62 |
63 bool is_uninstalling() const { return is_uninstalling_; } | 63 bool is_uninstalling() const { return is_uninstalling_; } |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // It is stopped when activation completes or the active version is no | 224 // It is stopped when activation completes or the active version is no |
225 // longer considered a lame duck. | 225 // longer considered a lame duck. |
226 base::RepeatingTimer lame_duck_timer_; | 226 base::RepeatingTimer lame_duck_timer_; |
227 | 227 |
228 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistration); | 228 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistration); |
229 }; | 229 }; |
230 | 230 |
231 } // namespace content | 231 } // namespace content |
232 | 232 |
233 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ | 233 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_H_ |
OLD | NEW |