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

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 813673005: Service Worker: Improve some exception messages (Chromium). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 5 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/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index 96657505b1d777dc0e9fb43f7b4d8d28ab118d5a..2ee1aebcf2638bf47ba5c8d5c66f3b419e9e4e8a 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -32,6 +32,11 @@ static const int kDocumentMainThreadId = 0;
// and embedded worker.
static const int kInvalidServiceWorkerRequestId = -1;
+// Constants for error messages.
+extern const char kServiceWorkerRegisterErrorPrefix[];
+extern const char kServiceWorkerUnregisterErrorPrefix[];
+extern const char kServiceWorkerGetRegistrationErrorPrefix[];
+
// Constants for invalid identifiers.
static const int kInvalidServiceWorkerHandleId = -1;
static const int kInvalidServiceWorkerRegistrationHandleId = -1;

Powered by Google App Engine
This is Rietveld 408576698