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

Unified Diff: content/browser/service_worker/service_worker_register_job.h

Issue 142973003: Have a central operation status code for ServiceWorker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_register_job.h
diff --git a/content/browser/service_worker/service_worker_register_job.h b/content/browser/service_worker/service_worker_register_job.h
index 88216d66fc843aa059008528371f46ddbd60db2e..c0a7f4c9805a86fac33acc70f5c9b5b809e6a790 100644
--- a/content/browser/service_worker/service_worker_register_job.h
+++ b/content/browser/service_worker/service_worker_register_job.h
@@ -24,10 +24,10 @@ class ServiceWorkerRegisterJob {
UNREGISTER,
};
- typedef base::Callback<void(ServiceWorkerRegistrationStatus status,
+ typedef base::Callback<void(ServiceWorkerStatusCode status,
const scoped_refptr<ServiceWorkerRegistration>&
registration)> RegistrationCallback;
- typedef base::Callback<void(ServiceWorkerRegistrationStatus status)>
+ typedef base::Callback<void(ServiceWorkerStatusCode status)>
UnregistrationCallback;
// All type of jobs (Register and Unregister) complete through a
@@ -69,23 +69,23 @@ class ServiceWorkerRegisterJob {
// These are all steps in the registration and unregistration pipeline.
void RegisterPatternAndContinue(
const RegistrationCallback& callback,
- ServiceWorkerRegistrationStatus previous_status);
+ ServiceWorkerStatusCode previous_status);
void UnregisterPatternAndContinue(
const UnregistrationCallback& callback,
bool found,
- ServiceWorkerRegistrationStatus previous_status,
+ ServiceWorkerStatusCode previous_status,
const scoped_refptr<ServiceWorkerRegistration>& previous_registration);
// These methods are the last internal callback in the callback
// chain, and ultimately call callback_.
- void UnregisterComplete(ServiceWorkerRegistrationStatus status);
+ void UnregisterComplete(ServiceWorkerStatusCode status);
void RegisterComplete(
- ServiceWorkerRegistrationStatus status,
+ ServiceWorkerStatusCode status,
const scoped_refptr<ServiceWorkerRegistration>& registration);
void RunCallbacks(
- ServiceWorkerRegistrationStatus status,
+ ServiceWorkerStatusCode status,
const scoped_refptr<ServiceWorkerRegistration>& registration);
// The ServiceWorkerStorage object should always outlive

Powered by Google App Engine
This is Rietveld 408576698