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

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

Issue 2905593002: Clients.matchAll() should return ordered clients by type/focus time/creation time (Closed)
Patch Set: Address shimazu's comments #31 and fix the test failure Created 3 years, 7 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_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
index 8d5fee4ae4ce73d8e25dbf95a8821f8d689d734c..1db0c8e2476da1b4c9d4665ea8a5de23935c4189 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -19,6 +19,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "base/time/time.h"
#include "content/browser/service_worker/service_worker_registration.h"
#include "content/common/content_export.h"
#include "content/common/service_worker/service_worker_provider_host_info.h"
@@ -87,6 +88,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
virtual ~ServiceWorkerProviderHost();
const std::string& client_uuid() const { return client_uuid_; }
+ base::TimeTicks create_time() const { return create_time_; }
int process_id() const { return render_process_id_; }
int provider_id() const { return info_.provider_id; }
int frame_id() const;
@@ -366,6 +368,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
void UnregisterWorkerFetchContext(mojom::ServiceWorkerWorkerClient*);
std::string client_uuid_;
+ base::TimeTicks create_time_;
int render_process_id_;
// For provider hosts that are hosting a running service worker, the id of the

Powered by Google App Engine
This is Rietveld 408576698