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