| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 ServiceWorkerRegistration* registration); | 135 ServiceWorkerRegistration* registration); |
| 136 | 136 |
| 137 // EmbeddedWorkerInstance::Listener override of OnPausedAfterDownload. | 137 // EmbeddedWorkerInstance::Listener override of OnPausedAfterDownload. |
| 138 void OnPausedAfterDownload() override; | 138 void OnPausedAfterDownload() override; |
| 139 bool OnMessageReceived(const IPC::Message& message) override; | 139 bool OnMessageReceived(const IPC::Message& message) override; |
| 140 | 140 |
| 141 void OnCompareScriptResourcesComplete( | 141 void OnCompareScriptResourcesComplete( |
| 142 ServiceWorkerStatusCode status, | 142 ServiceWorkerStatusCode status, |
| 143 bool are_equal); | 143 bool are_equal); |
| 144 | 144 |
| 145 void AssociateProviderHostsToRegistration( | 145 void NotifyProviderHostsForRegistration( |
| 146 ServiceWorkerRegistration* registration); | 146 ServiceWorkerRegistration* registration); |
| 147 | 147 |
| 148 // The ServiceWorkerContextCore object should always outlive this. | 148 // The ServiceWorkerContextCore object should always outlive this. |
| 149 base::WeakPtr<ServiceWorkerContextCore> context_; | 149 base::WeakPtr<ServiceWorkerContextCore> context_; |
| 150 | 150 |
| 151 RegistrationJobType job_type_; | 151 RegistrationJobType job_type_; |
| 152 const GURL pattern_; | 152 const GURL pattern_; |
| 153 const GURL script_url_; | 153 const GURL script_url_; |
| 154 std::vector<RegistrationCallback> callbacks_; | 154 std::vector<RegistrationCallback> callbacks_; |
| 155 Phase phase_; | 155 Phase phase_; |
| 156 Internal internal_; | 156 Internal internal_; |
| 157 bool doom_installing_worker_; | 157 bool doom_installing_worker_; |
| 158 bool is_promise_resolved_; | 158 bool is_promise_resolved_; |
| 159 bool should_uninstall_on_failure_; | 159 bool should_uninstall_on_failure_; |
| 160 ServiceWorkerStatusCode promise_resolved_status_; | 160 ServiceWorkerStatusCode promise_resolved_status_; |
| 161 std::string promise_resolved_status_message_; | 161 std::string promise_resolved_status_message_; |
| 162 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; | 162 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; |
| 163 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; | 163 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); | 165 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace content | 168 } // namespace content |
| 169 | 169 |
| 170 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ | 170 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ |
| OLD | NEW |