| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 // The ServiceWorkerContextCore object should always outlive this. | 153 // The ServiceWorkerContextCore object should always outlive this. |
| 154 base::WeakPtr<ServiceWorkerContextCore> context_; | 154 base::WeakPtr<ServiceWorkerContextCore> context_; |
| 155 | 155 |
| 156 // Holds the time the job started. | 156 // Holds the time the job started. |
| 157 base::TimeTicks start_time_; | 157 base::TimeTicks start_time_; |
| 158 | 158 |
| 159 RegistrationJobType job_type_; | 159 RegistrationJobType job_type_; |
| 160 const GURL pattern_; | 160 const GURL pattern_; |
| 161 GURL script_url_; | 161 GURL script_url_; |
| 162 const blink::WebServiceWorkerUpdateViaCache update_via_cache_; |
| 162 std::vector<RegistrationCallback> callbacks_; | 163 std::vector<RegistrationCallback> callbacks_; |
| 163 Phase phase_; | 164 Phase phase_; |
| 164 Internal internal_; | 165 Internal internal_; |
| 165 bool is_promise_resolved_; | 166 bool is_promise_resolved_; |
| 166 bool should_uninstall_on_failure_; | 167 bool should_uninstall_on_failure_; |
| 167 bool force_bypass_cache_; | 168 bool force_bypass_cache_; |
| 168 bool skip_script_comparison_; | 169 bool skip_script_comparison_; |
| 169 ServiceWorkerStatusCode promise_resolved_status_; | 170 ServiceWorkerStatusCode promise_resolved_status_; |
| 170 std::string promise_resolved_status_message_; | 171 std::string promise_resolved_status_message_; |
| 171 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; | 172 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; |
| 172 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; | 173 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); | 175 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace content | 178 } // namespace content |
| 178 | 179 |
| 179 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ | 180 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ |
| OLD | NEW |