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

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

Issue 2002883002: ServiceWorker: Store the existence of fetch event handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const scoped_refptr<ServiceWorkerRegistration>& existing_registration, 116 const scoped_refptr<ServiceWorkerRegistration>& existing_registration,
117 ServiceWorkerStatusCode status); 117 ServiceWorkerStatusCode status);
118 void ContinueWithRegistrationForSameScriptUrl( 118 void ContinueWithRegistrationForSameScriptUrl(
119 const scoped_refptr<ServiceWorkerRegistration>& existing_registration, 119 const scoped_refptr<ServiceWorkerRegistration>& existing_registration,
120 ServiceWorkerStatusCode status); 120 ServiceWorkerStatusCode status);
121 void UpdateAndContinue(); 121 void UpdateAndContinue();
122 void OnStartWorkerFinished(ServiceWorkerStatusCode status); 122 void OnStartWorkerFinished(ServiceWorkerStatusCode status);
123 void OnStoreRegistrationComplete(ServiceWorkerStatusCode status); 123 void OnStoreRegistrationComplete(ServiceWorkerStatusCode status);
124 void InstallAndContinue(); 124 void InstallAndContinue();
125 void DispatchInstallEvent(); 125 void DispatchInstallEvent();
126 void OnInstallFinished(ServiceWorkerStatusCode status); 126 void OnInstallFinished(int request_id,
127 blink::WebServiceWorkerEventResult result,
128 bool has_fetch_handler);
129 void OnInstallFailed(ServiceWorkerStatusCode status);
127 void Complete(ServiceWorkerStatusCode status); 130 void Complete(ServiceWorkerStatusCode status);
128 void Complete(ServiceWorkerStatusCode status, 131 void Complete(ServiceWorkerStatusCode status,
129 const std::string& status_message); 132 const std::string& status_message);
130 void CompleteInternal(ServiceWorkerStatusCode status, 133 void CompleteInternal(ServiceWorkerStatusCode status,
131 const std::string& status_message); 134 const std::string& status_message);
132 void ResolvePromise(ServiceWorkerStatusCode status, 135 void ResolvePromise(ServiceWorkerStatusCode status,
133 const std::string& status_message, 136 const std::string& status_message,
134 ServiceWorkerRegistration* registration); 137 ServiceWorkerRegistration* registration);
135 138
136 void AddRegistrationToMatchingProviderHosts( 139 void AddRegistrationToMatchingProviderHosts(
(...skipping 22 matching lines...) Expand all
159 std::string promise_resolved_status_message_; 162 std::string promise_resolved_status_message_;
160 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; 163 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_;
161 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; 164 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_;
162 165
163 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); 166 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob);
164 }; 167 };
165 168
166 } // namespace content 169 } // namespace content
167 170
168 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ 171 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698