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

Unified Diff: chrome/browser/resource_coordinator/tab_manager_web_contents_data.h

Issue 2931023002: [TooManyTabs] Add TabNavigationThrottle (Closed)
Patch Set: add comments Created 3 years, 5 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: chrome/browser/resource_coordinator/tab_manager_web_contents_data.h
diff --git a/chrome/browser/resource_coordinator/tab_manager_web_contents_data.h b/chrome/browser/resource_coordinator/tab_manager_web_contents_data.h
index 3ccce436a133c9583823d4c350191994715988e7..8cbe85baf5509e54612bd1528051500bc5924174 100644
--- a/chrome/browser/resource_coordinator/tab_manager_web_contents_data.h
+++ b/chrome/browser/resource_coordinator/tab_manager_web_contents_data.h
@@ -57,6 +57,8 @@ class TabManager::WebContentsData
void DidStopLoading() override;
void DidStartNavigation(
content::NavigationHandle* navigation_handle) override;
+ void DidFinishNavigation(
+ content::NavigationHandle* navigation_handle) override;
void WebContentsDestroyed() override;
// Returns true if the tab has been discarded to save memory.
@@ -122,6 +124,11 @@ class TabManager::WebContentsData
// Returns the time to first purge after the tab is backgrounded.
base::TimeDelta time_to_purge() const { return time_to_purge_; }
+ // Sets the tab loading state.
+ void SetTabLoadingState(TabLoadingState state) {
+ tab_data_.tab_loading_state = state;
+ }
+
// Returns the TabLoadingState of the tab.
TabLoadingState tab_loading_state() const {
return tab_data_.tab_loading_state;
@@ -165,11 +172,6 @@ class TabManager::WebContentsData
// for more details.
base::TimeTicks NowTicks() const;
- // Sets the tab loading state.
- void SetTabLoadingState(TabLoadingState state) {
- tab_data_.tab_loading_state = state;
- }
-
// Contains all the needed data for the tab.
Data tab_data_;

Powered by Google App Engine
This is Rietveld 408576698