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