Chromium Code Reviews| Index: chrome/browser/sessions/tab_loader.h |
| diff --git a/chrome/browser/sessions/tab_loader.h b/chrome/browser/sessions/tab_loader.h |
| index a422931c9f46c624f15cd31704e614964c3e7f47..f98a2537108e667dbf46fdf7ecb3abde42bfd64d 100644 |
| --- a/chrome/browser/sessions/tab_loader.h |
| +++ b/chrome/browser/sessions/tab_loader.h |
| @@ -11,6 +11,7 @@ |
| #include <memory> |
| #include <set> |
| +#include "base/gtest_prod_util.h" |
| #include "base/macros.h" |
| #include "base/memory/memory_coordinator_client.h" |
| #include "base/memory/memory_pressure_listener.h" |
| @@ -26,6 +27,7 @@ class RenderWidgetHost; |
| } |
| class SessionRestoreStatsCollector; |
| +class TabLoaderTest; |
| // TabLoader is responsible for loading tabs after session restore has finished |
| // creating all the tabs. Tabs are loaded after a previously tab finishes |
| @@ -60,11 +62,15 @@ class TabLoader : public content::NotificationObserver, |
| const base::TimeTicks& restore_started); |
| private: |
| + FRIEND_TEST_ALL_PREFIXES(TabLoaderTest, OnMemoryStateChange); |
| + |
| friend class base::RefCounted<TabLoader>; |
| using TabsLoading = std::set<content::NavigationController*>; |
| using TabsToLoad = std::list<content::NavigationController*>; |
| + static bool GetLoadingEnabledForTesting(); |
|
sky
2016/11/01 15:23:14
As the test is a friend, can't it call shared_tab_
hajimehoshi
2016/11/02 09:34:13
Done.
|
| + |
| explicit TabLoader(base::TimeTicks restore_started); |
| ~TabLoader() override; |