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

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

Issue 1063823005: Service Worker: Use more specific errors when StartWorker fails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms.xml Created 5 years, 8 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_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index c73ef597273c0907ba2eb6d3686f33826849a2df..a617d554b715a7a55942b8d975a1e80308a4c1b1 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -478,6 +478,12 @@ class CONTENT_EXPORT ServiceWorkerVersion
bool OnRequestTimeout(const RequestInfo& info);
void SetAllRequestTimes(const base::TimeTicks& ticks);
+ // Returns the reason the embedded worker failed to start, using information
+ // inaccessible to EmbeddedWorkerInstance. Returns |default_code| if it can't
+ // deduce a reason.
+ ServiceWorkerStatusCode DeduceStartWorkerFailureReason(
+ ServiceWorkerStatusCode default_code);
+
const int64 version_id_;
int64 registration_id_;
GURL script_url_;

Powered by Google App Engine
This is Rietveld 408576698