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_REGISTER_JOB_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 scoped_refptr<ServiceWorkerVersion> new_version; | 97 scoped_refptr<ServiceWorkerVersion> new_version; |
98 }; | 98 }; |
99 | 99 |
100 void set_registration( | 100 void set_registration( |
101 const scoped_refptr<ServiceWorkerRegistration>& registration); | 101 const scoped_refptr<ServiceWorkerRegistration>& registration); |
102 ServiceWorkerRegistration* registration(); | 102 ServiceWorkerRegistration* registration(); |
103 void set_new_version(ServiceWorkerVersion* version); | 103 void set_new_version(ServiceWorkerVersion* version); |
104 ServiceWorkerVersion* new_version(); | 104 ServiceWorkerVersion* new_version(); |
105 | 105 |
106 void SetPhase(Phase phase); | 106 void SetPhase(Phase phase); |
| 107 void StartInternal(); |
107 | 108 |
108 void ContinueWithRegistration( | 109 void ContinueWithRegistration( |
109 ServiceWorkerStatusCode status, | 110 ServiceWorkerStatusCode status, |
110 const scoped_refptr<ServiceWorkerRegistration>& registration); | 111 const scoped_refptr<ServiceWorkerRegistration>& registration); |
111 void ContinueWithUpdate( | 112 void ContinueWithUpdate( |
112 ServiceWorkerStatusCode status, | 113 ServiceWorkerStatusCode status, |
113 const scoped_refptr<ServiceWorkerRegistration>& registration); | 114 const scoped_refptr<ServiceWorkerRegistration>& registration); |
114 void RegisterAndContinue(); | 115 void RegisterAndContinue(); |
115 void ContinueWithUninstallingRegistration( | 116 void ContinueWithUninstallingRegistration( |
116 const scoped_refptr<ServiceWorkerRegistration>& existing_registration, | 117 const scoped_refptr<ServiceWorkerRegistration>& existing_registration, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 std::string promise_resolved_status_message_; | 162 std::string promise_resolved_status_message_; |
162 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; | 163 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; |
163 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; | 164 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); | 166 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); |
166 }; | 167 }; |
167 | 168 |
168 } // namespace content | 169 } // namespace content |
169 | 170 |
170 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ | 171 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ |
OLD | NEW |