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