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

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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Created 3 years, 9 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 ServiceWorkerStatusCode status); 114 ServiceWorkerStatusCode status);
115 void ContinueWithRegistrationForSameScriptUrl( 115 void ContinueWithRegistrationForSameScriptUrl(
116 scoped_refptr<ServiceWorkerRegistration> existing_registration, 116 scoped_refptr<ServiceWorkerRegistration> existing_registration,
117 ServiceWorkerStatusCode status); 117 ServiceWorkerStatusCode status);
118 void UpdateAndContinue(); 118 void UpdateAndContinue();
119 void OnStartWorkerFinished(ServiceWorkerStatusCode status); 119 void OnStartWorkerFinished(ServiceWorkerStatusCode status);
120 void OnStoreRegistrationComplete(ServiceWorkerStatusCode status); 120 void OnStoreRegistrationComplete(ServiceWorkerStatusCode status);
121 void InstallAndContinue(); 121 void InstallAndContinue();
122 void DispatchInstallEvent(); 122 void DispatchInstallEvent();
123 void OnInstallFinished(int request_id, 123 void OnInstallFinished(int request_id,
124 blink::WebServiceWorkerEventResult result, 124 ServiceWorkerStatusCode status,
125 bool has_fetch_handler, 125 bool has_fetch_handler,
126 base::Time dispatch_event_time); 126 base::Time dispatch_event_time);
127 void OnInstallFailed(ServiceWorkerStatusCode status); 127 void OnInstallFailed(ServiceWorkerStatusCode status);
128 void Complete(ServiceWorkerStatusCode status); 128 void Complete(ServiceWorkerStatusCode status);
129 void Complete(ServiceWorkerStatusCode status, 129 void Complete(ServiceWorkerStatusCode status,
130 const std::string& status_message); 130 const std::string& status_message);
131 void CompleteInternal(ServiceWorkerStatusCode status, 131 void CompleteInternal(ServiceWorkerStatusCode status,
132 const std::string& status_message); 132 const std::string& status_message);
133 void ResolvePromise(ServiceWorkerStatusCode status, 133 void ResolvePromise(ServiceWorkerStatusCode status,
134 const std::string& status_message, 134 const std::string& status_message,
(...skipping 25 matching lines...) Expand all
160 std::string promise_resolved_status_message_; 160 std::string promise_resolved_status_message_;
161 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; 161 scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_;
162 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; 162 base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); 164 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob);
165 }; 165 };
166 166
167 } // namespace content 167 } // namespace content
168 168
169 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_ 169 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTER_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698