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

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

Issue 893793005: Check if there is a SW controlling the start page for app banner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and naming / comment tweaks Created 5 years, 10 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 8494035e9fa9a47bc642b7f882fe26e3f48cc1a5..4eb6771dd3ef33da99b24890611f2981b82fc05e 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -85,6 +85,10 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
const net::CompletionCallback& callback) override;
void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
void DeleteForOrigin(const GURL& origin_url) override;
+ void CheckHasServiceWorker(
+ const GURL& url,
+ const GURL& other_url,
+ const CheckHasServiceWorkerCallback& callback) override;
// DeleteForOrigin with completion callback. Does not exit early, and returns
// false if one or more of the deletions fail.
@@ -129,6 +133,12 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
const GetUsageInfoCallback& callback,
const std::vector<ServiceWorkerRegistrationInfo>& registrations);
+ void DidFindRegistrationForCheckHasServiceWorker(
+ const GURL& other_url,
+ const CheckHasServiceWorkerCallback& callback,
+ ServiceWorkerStatusCode status,
+ const scoped_refptr<ServiceWorkerRegistration>& registration);
+
const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> >
observer_list_;
const scoped_ptr<ServiceWorkerProcessManager> process_manager_;
« no previous file with comments | « chrome/browser/android/banners/app_banner_manager.cc ('k') | content/browser/service_worker/service_worker_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698