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 #include "content/browser/service_worker/service_worker_registration.h" | 5 #include "content/browser/service_worker/service_worker_registration.h" |
6 | 6 |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 observed_registration_ = registration; | 54 observed_registration_ = registration; |
55 observed_changed_mask_ = changed_mask; | 55 observed_changed_mask_ = changed_mask; |
56 observed_info_ = info; | 56 observed_info_ = info; |
57 } | 57 } |
58 | 58 |
59 virtual void OnRegistrationFailed( | 59 virtual void OnRegistrationFailed( |
60 ServiceWorkerRegistration* registration) OVERRIDE { | 60 ServiceWorkerRegistration* registration) OVERRIDE { |
61 NOTREACHED(); | 61 NOTREACHED(); |
62 } | 62 } |
63 | 63 |
| 64 virtual void OnRegistrationFinishedUninstalling( |
| 65 ServiceWorkerRegistration* registration) OVERRIDE { |
| 66 NOTREACHED(); |
| 67 } |
| 68 |
| 69 virtual void OnUpdateFound( |
| 70 ServiceWorkerRegistration* registration) OVERRIDE { |
| 71 NOTREACHED(); |
| 72 } |
| 73 |
64 void Reset() { | 74 void Reset() { |
65 observed_registration_ = NULL; | 75 observed_registration_ = NULL; |
66 observed_changed_mask_ = ChangedVersionAttributesMask(); | 76 observed_changed_mask_ = ChangedVersionAttributesMask(); |
67 observed_info_ = ServiceWorkerRegistrationInfo(); | 77 observed_info_ = ServiceWorkerRegistrationInfo(); |
68 } | 78 } |
69 | 79 |
70 scoped_refptr<ServiceWorkerRegistration> observed_registration_; | 80 scoped_refptr<ServiceWorkerRegistration> observed_registration_; |
71 ChangedVersionAttributesMask observed_changed_mask_; | 81 ChangedVersionAttributesMask observed_changed_mask_; |
72 ServiceWorkerRegistrationInfo observed_info_; | 82 ServiceWorkerRegistrationInfo observed_info_; |
73 }; | 83 }; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 scoped_ptr<ServiceWorkerRegistrationHandle> handle( | 169 scoped_ptr<ServiceWorkerRegistrationHandle> handle( |
160 new ServiceWorkerRegistrationHandle(context_ptr_, | 170 new ServiceWorkerRegistrationHandle(context_ptr_, |
161 NULL, | 171 NULL, |
162 kProviderId, | 172 kProviderId, |
163 registration.get())); | 173 registration.get())); |
164 registration->NotifyRegistrationFailed(); | 174 registration->NotifyRegistrationFailed(); |
165 // Don't crash when handle gets destructed. | 175 // Don't crash when handle gets destructed. |
166 } | 176 } |
167 | 177 |
168 } // namespace content | 178 } // namespace content |
OLD | NEW |