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

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

Issue 894973003: ServiceWorker: Make "ready" fetches registration from browser process(2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 10 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 <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 bool OnMessageReceived(const IPC::Message& message) override; 145 bool OnMessageReceived(const IPC::Message& message) override;
146 146
147 // ServiceWorkerRegistration::Listener overrides 147 // ServiceWorkerRegistration::Listener overrides
148 void OnRegistrationFinishedUninstalling( 148 void OnRegistrationFinishedUninstalling(
149 ServiceWorkerRegistration* registration) override; 149 ServiceWorkerRegistration* registration) override;
150 150
151 void OnCompareScriptResourcesComplete( 151 void OnCompareScriptResourcesComplete(
152 ServiceWorkerStatusCode status, 152 ServiceWorkerStatusCode status,
153 bool are_equal); 153 bool are_equal);
154 154
155 void AssociateProviderHostsToRegistration( 155 void NotifyProviderHostsForRegistration(
156 ServiceWorkerRegistration* registration); 156 ServiceWorkerRegistration* registration);
157 157
158 // The ServiceWorkerContextCore object should always outlive this. 158 // The ServiceWorkerContextCore object should always outlive this.
159 base::WeakPtr<ServiceWorkerContextCore> context_; 159 base::WeakPtr<ServiceWorkerContextCore> context_;
160 160
161 RegistrationJobType job_type_; 161 RegistrationJobType job_type_;
162 const GURL pattern_; 162 const GURL pattern_;
163 const GURL script_url_; 163 const GURL script_url_;
164 std::vector<RegistrationCallback> callbacks_; 164 std::vector<RegistrationCallback> callbacks_;
165 Phase phase_; 165 Phase phase_;
166 Internal internal_; 166 Internal internal_;
167 bool doom_installing_worker_; 167 bool doom_installing_worker_;
168 bool is_promise_resolved_; 168 bool is_promise_resolved_;
169 ServiceWorkerStatusCode promise_resolved_status_; 169 ServiceWorkerStatusCode promise_resolved_status_;
170 std::string promise_resolved_status_message_; 170 std::string promise_resolved_status_message_;
171 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; 171 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_;
172 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; 172 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_;
173 173
174 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); 174 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob);
175 }; 175 };
176 176
177 } // namespace content 177 } // namespace content
178 178
179 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ 179 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698