Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: content/browser/service_worker/service_worker_register_job.h

Issue 1928443003: service worker: Update job gets the script url when the job starts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698