| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 92     ~Internal(); | 92     ~Internal(); | 
| 93     scoped_refptr<ServiceWorkerRegistration> registration; | 93     scoped_refptr<ServiceWorkerRegistration> registration; | 
| 94 | 94 | 
| 95     // Holds the version created by this job. It can be the 'installing', | 95     // Holds the version created by this job. It can be the 'installing', | 
| 96     // 'waiting', or 'active' version depending on the phase. | 96     // 'waiting', or 'active' version depending on the phase. | 
| 97     scoped_refptr<ServiceWorkerVersion> new_version; | 97     scoped_refptr<ServiceWorkerVersion> new_version; | 
| 98 | 98 | 
| 99     scoped_refptr<ServiceWorkerRegistration> uninstalling_registration; | 99     scoped_refptr<ServiceWorkerRegistration> uninstalling_registration; | 
| 100   }; | 100   }; | 
| 101 | 101 | 
| 102   void set_registration(ServiceWorkerRegistration* registration); | 102   void set_registration( | 
|  | 103       const scoped_refptr<ServiceWorkerRegistration>& registration); | 
| 103   ServiceWorkerRegistration* registration(); | 104   ServiceWorkerRegistration* registration(); | 
| 104   void set_new_version(ServiceWorkerVersion* version); | 105   void set_new_version(ServiceWorkerVersion* version); | 
| 105   ServiceWorkerVersion* new_version(); | 106   ServiceWorkerVersion* new_version(); | 
| 106   void set_uninstalling_registration(ServiceWorkerRegistration* registration); | 107   void set_uninstalling_registration( | 
|  | 108       const scoped_refptr<ServiceWorkerRegistration>& registration); | 
| 107   ServiceWorkerRegistration* uninstalling_registration(); | 109   ServiceWorkerRegistration* uninstalling_registration(); | 
| 108 | 110 | 
| 109   void SetPhase(Phase phase); | 111   void SetPhase(Phase phase); | 
| 110 | 112 | 
| 111   void ContinueWithRegistration( | 113   void ContinueWithRegistration( | 
| 112       ServiceWorkerStatusCode status, | 114       ServiceWorkerStatusCode status, | 
| 113       const scoped_refptr<ServiceWorkerRegistration>& registration); | 115       const scoped_refptr<ServiceWorkerRegistration>& registration); | 
| 114   void ContinueWithUpdate( | 116   void ContinueWithUpdate( | 
| 115       ServiceWorkerStatusCode status, | 117       ServiceWorkerStatusCode status, | 
| 116       const scoped_refptr<ServiceWorkerRegistration>& registration); | 118       const scoped_refptr<ServiceWorkerRegistration>& registration); | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 164   scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; | 166   scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; | 
| 165   scoped_refptr<ServiceWorkerVersion> promise_resolved_version_; | 167   scoped_refptr<ServiceWorkerVersion> promise_resolved_version_; | 
| 166   base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; | 168   base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; | 
| 167 | 169 | 
| 168   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); | 170   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); | 
| 169 }; | 171 }; | 
| 170 | 172 | 
| 171 }  // namespace content | 173 }  // namespace content | 
| 172 | 174 | 
| 173 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ | 175 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ | 
| OLD | NEW | 
|---|