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

Unified Diff: content/browser/frame_host/frame_tree_node.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 inconsistencies. 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/browser/frame_host/frame_tree_node.h
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h
index c56f21dd8ebb3a2ab72c96b9ed6628bf2a484bff..2d033a65db6f56f0f7ad88b946186f2f8457c79c 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -203,6 +203,12 @@ class CONTENT_EXPORT FrameTreeNode {
// FrameTree::ForEach to stop all loads in the entire FrameTree.
bool StopLoading();
+ // Returns the time this frame was last focused.
+ base::TimeTicks last_focus_time() const { return last_focus_time_; }
+ void set_last_focus_time(const base::TimeTicks& last_focus_time) {
+ last_focus_time_ = last_focus_time;
+ }
+
private:
class OpenerDestroyedObserver;
@@ -281,6 +287,8 @@ class CONTENT_EXPORT FrameTreeNode {
// List of objects observing this FrameTreeNode.
base::ObserverList<Observer> observers_;
+ base::TimeTicks last_focus_time_;
+
DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
};
« no previous file with comments | « content/browser/frame_host/frame_tree.cc ('k') | content/browser/service_worker/service_worker_provider_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698