summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/service_worker/service_worker_registration_status.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/service_worker/service_worker_registration_status.h')
-rw-r--r--chromium/content/browser/service_worker/service_worker_registration_status.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/chromium/content/browser/service_worker/service_worker_registration_status.h b/chromium/content/browser/service_worker/service_worker_registration_status.h
index 1676b495cde..8cffd5628e9 100644
--- a/chromium/content/browser/service_worker/service_worker_registration_status.h
+++ b/chromium/content/browser/service_worker/service_worker_registration_status.h
@@ -6,21 +6,14 @@
#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_STATUS_H_
#include "base/strings/string16.h"
+#include "content/common/service_worker/service_worker_status_code.h"
#include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
namespace content {
-// This enum describes the reason a registration or unregistration succeeds or
-// fails.
-enum ServiceWorkerRegistrationStatus {
- REGISTRATION_OK,
- REGISTRATION_INSTALL_FAILED,
- REGISTRATION_ACTIVATE_FAILED,
-};
-
-// This should only be called for errors, where status != REGISTRATION_OK.
+// This should only be called for errors, where status != OK.
void GetServiceWorkerRegistrationStatusResponse(
- ServiceWorkerRegistrationStatus status,
+ ServiceWorkerStatusCode status,
blink::WebServiceWorkerError::ErrorType* error_type,
base::string16* message);