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

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

Issue 871853002: ServiceWorker: add ServiceWorkerClients.claim() support (2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove listener 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_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 136cee9b8809c4afcf5f053ae67abaa65e9048ad..01de2da312fa58be466684c5c423ef707868aca6 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -289,6 +289,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
bool is_doomed() const { return is_doomed_; }
bool skip_waiting() const { return skip_waiting_; }
+ bool claiming_clients() const { return claiming_clients_; }
falken 2015/01/29 15:10:37 I'd prefer is_claiming_clients(), otherwise it loo
michaeln 2015/01/29 22:35:34 I think this isn't needed, see comments in the pro
void SetDevToolsAttached(bool attached);
@@ -357,6 +358,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
const std::vector<int>& sent_message_port_ids);
void OnFocusClient(int request_id, int client_id);
void OnSkipWaiting(int request_id);
+ void OnClaimClients(int request_id);
void OnFocusClientFinished(int request_id, bool result);
void DidSkipWaiting(int request_id);
@@ -409,6 +411,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
bool is_doomed_;
std::vector<int> pending_skip_waiting_requests_;
bool skip_waiting_;
+ bool claiming_clients_;
base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698