| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // ServiceWorkerRegisterJobBase implementation: | 63 // ServiceWorkerRegisterJobBase implementation: |
| 64 void Start() override; | 64 void Start() override; |
| 65 void Abort() override; | 65 void Abort() override; |
| 66 bool Equals(ServiceWorkerRegisterJobBase* job) const override; | 66 bool Equals(ServiceWorkerRegisterJobBase* job) const override; |
| 67 RegistrationJobType GetType() const override; | 67 RegistrationJobType GetType() const override; |
| 68 | 68 |
| 69 void DoomInstallingWorker(); | 69 void DoomInstallingWorker(); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostWaitingVersionTest, | |
| 73 AssociateInstallingVersionToDocuments); | |
| 74 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerProviderHostWaitingVersionTest, | |
| 75 DisassociateVersionFromDocuments); | |
| 76 | |
| 77 enum Phase { | 72 enum Phase { |
| 78 INITIAL, | 73 INITIAL, |
| 79 START, | 74 START, |
| 80 REGISTER, | 75 REGISTER, |
| 81 UPDATE, | 76 UPDATE, |
| 82 INSTALL, | 77 INSTALL, |
| 83 STORE, | 78 STORE, |
| 84 COMPLETE, | 79 COMPLETE, |
| 85 ABORT, | 80 ABORT, |
| 86 }; | 81 }; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 std::string promise_resolved_status_message_; | 150 std::string promise_resolved_status_message_; |
| 156 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; | 151 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; |
| 157 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; | 152 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; |
| 158 | 153 |
| 159 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); | 154 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); |
| 160 }; | 155 }; |
| 161 | 156 |
| 162 } // namespace content | 157 } // namespace content |
| 163 | 158 |
| 164 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ | 159 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ |
| OLD | NEW |