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

Side by Side Diff: chrome/browser/memory/tab_manager.h

Issue 1978343002: [TabManager] Start function refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEMORY_TAB_MANAGER_H_ 5 #ifndef CHROME_BROWSER_MEMORY_TAB_MANAGER_H_
6 #define CHROME_BROWSER_MEMORY_TAB_MANAGER_H_ 6 #define CHROME_BROWSER_MEMORY_TAB_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 TabManager(); 71 TabManager();
72 ~TabManager() override; 72 ~TabManager() override;
73 73
74 // Number of discard events since Chrome started. 74 // Number of discard events since Chrome started.
75 int discard_count() const { return discard_count_; } 75 int discard_count() const { return discard_count_; }
76 76
77 // See member comment. 77 // See member comment.
78 bool recent_tab_discard() const { return recent_tab_discard_; } 78 bool recent_tab_discard() const { return recent_tab_discard_; }
79 79
80 // Check if tabs can be discarded multiple times.
81 bool CheckMultipleDiscards();
Georges Khalil 2016/05/16 18:41:22 This should be private (don't forget to reorder th
Anderson Silva 2016/05/16 19:39:06 Acknowledged.
82
80 // Start/Stop the Tab Manager. 83 // Start/Stop the Tab Manager.
81 void Start(); 84 void Start();
82 void Stop(); 85 void Stop();
83 86
84 // Returns the list of the stats for all renderers. Must be called on the UI 87 // Returns the list of the stats for all renderers. Must be called on the UI
85 // thread. The returned list is sorted by reversed importance. 88 // thread. The returned list is sorted by reversed importance.
86 TabStatsList GetTabStats(); 89 TabStatsList GetTabStats();
87 90
88 // Returns a sorted list of renderers, from most important to least important. 91 // Returns a sorted list of renderers, from most important to least important.
89 std::vector<content::RenderProcessHost*> GetOrderedRenderers(); 92 std::vector<content::RenderProcessHost*> GetOrderedRenderers();
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 329
327 // Weak pointer factory used for posting delayed tasks to task_runner_. 330 // Weak pointer factory used for posting delayed tasks to task_runner_.
328 base::WeakPtrFactory<TabManager> weak_ptr_factory_; 331 base::WeakPtrFactory<TabManager> weak_ptr_factory_;
329 332
330 DISALLOW_COPY_AND_ASSIGN(TabManager); 333 DISALLOW_COPY_AND_ASSIGN(TabManager);
331 }; 334 };
332 335
333 } // namespace memory 336 } // namespace memory
334 337
335 #endif // CHROME_BROWSER_MEMORY_TAB_MANAGER_H_ 338 #endif // CHROME_BROWSER_MEMORY_TAB_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/memory/tab_manager.cc » ('j') | chrome/browser/memory/tab_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698