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

Unified Diff: content/common/service_worker/service_worker_client_info.h

Issue 1285373002: Ensure that Service Worker clients are always returned in MRU order (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos and add comments. Created 5 years, 4 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/common/service_worker/service_worker_client_info.h
diff --git a/content/common/service_worker/service_worker_client_info.h b/content/common/service_worker/service_worker_client_info.h
index e21aa1552f955afadd17e1dc80b25b33be7e1165..5c6b938b5f9c6f31000b74f5ccbce1278d7c831a 100644
--- a/content/common/service_worker/service_worker_client_info.h
+++ b/content/common/service_worker/service_worker_client_info.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_
#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_CLIENT_INFO_H_
+#include "base/time/time.h"
#include "content/public/common/request_context_frame_type.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebServiceWorkerClientType.h"
@@ -19,10 +20,12 @@ namespace content {
// constructor to fill the properties.
struct ServiceWorkerClientInfo {
ServiceWorkerClientInfo();
+ ServiceWorkerClientInfo(const ServiceWorkerClientInfo& a);
nhiroki 2015/08/17 03:57:55 Probably this is not necessary (a compiler automat
jeremyarcher 2015/08/17 04:51:28 Done.
ServiceWorkerClientInfo(blink::WebPageVisibilityState page_visibility_state,
bool is_focused,
const GURL& url,
RequestContextFrameType frame_type,
+ base::TimeTicks last_active_time,
blink::WebServiceWorkerClientType client_type);
// Returns whether the instance is empty.
@@ -38,6 +41,7 @@ struct ServiceWorkerClientInfo {
GURL url;
RequestContextFrameType frame_type;
blink::WebServiceWorkerClientType client_type;
+ base::TimeTicks last_active_time;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698