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

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

Issue 845313004: Service Worker: Improve error messages from register(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git-cl format 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/browser/service_worker/service_worker_script_cache_map.h
diff --git a/content/browser/service_worker/service_worker_script_cache_map.h b/content/browser/service_worker/service_worker_script_cache_map.h
index de814c210b17d6d579ecd79b4f92b04a02d363ec..7650517c7aa93e52d6358fa16cdf0790a390bda9 100644
--- a/content/browser/service_worker/service_worker_script_cache_map.h
+++ b/content/browser/service_worker/service_worker_script_cache_map.h
@@ -35,7 +35,8 @@ class CONTENT_EXPORT ServiceWorkerScriptCacheMap {
void NotifyStartedCaching(const GURL& url, int64 resource_id);
void NotifyFinishedCaching(const GURL& url,
int64 size_bytes,
- const net::URLRequestStatus& status);
+ const net::URLRequestStatus& status,
+ const std::string& status_message);
// Used to retrieve the results of the initial run of a new version.
void GetResources(
@@ -51,6 +52,10 @@ class CONTENT_EXPORT ServiceWorkerScriptCacheMap {
return main_script_status_;
}
+ const std::string& main_script_status_message() const {
+ return main_script_status_message_;
+ }
+
private:
typedef std::map<GURL, ServiceWorkerDatabase::ResourceRecord> ResourceMap;
@@ -65,6 +70,7 @@ class CONTENT_EXPORT ServiceWorkerScriptCacheMap {
base::WeakPtr<ServiceWorkerContextCore> context_;
ResourceMap resource_map_;
net::URLRequestStatus main_script_status_;
+ std::string main_script_status_message_;
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptCacheMap);
};

Powered by Google App Engine
This is Rietveld 408576698