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

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

Issue 2751343002: Adds a basic offline check to InstallableManager. (Closed)
Patch Set: Created 3 years, 9 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_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 04001b9c0f19dd24b2748eabf23fe61d4aedce06..c0ddcb2afa641047b6f0eec15867b24bb80bdcda 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -100,10 +100,10 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
void DeleteForOrigin(const GURL& origin,
const ResultCallback& callback) override;
- void CheckHasServiceWorker(
+ void CheckServiceWorkerStatus(
const GURL& url,
const GURL& other_url,
- const CheckHasServiceWorkerCallback& callback) override;
+ const CheckServiceWorkerStatusCallback& callback) override;
void CountExternalRequestsForTest(
const GURL& url,
const CountExternalRequestsCallback& callback) override;
@@ -269,8 +269,9 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
ServiceWorkerStatusCode status,
const std::vector<ServiceWorkerRegistrationInfo>& registrations);
- void DidCheckHasServiceWorker(const CheckHasServiceWorkerCallback& callback,
- bool has_service_worker);
+ void DidCheckServiceWorkerStatus(
+ const CheckServiceWorkerStatusCallback& callback,
+ content::ServiceWorkerStatus sw_status);
void DidFindRegistrationForUpdate(
ServiceWorkerStatusCode status,

Powered by Google App Engine
This is Rietveld 408576698