OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SESSIONS_TAB_LOADER_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ |
6 #define CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ | 6 #define CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <list> | 10 #include <list> |
9 #include <set> | 11 #include <set> |
10 | 12 |
| 13 #include "base/macros.h" |
11 #include "base/memory/memory_pressure_listener.h" | 14 #include "base/memory/memory_pressure_listener.h" |
12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
13 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
14 #include "chrome/browser/sessions/session_restore_delegate.h" | 17 #include "chrome/browser/sessions/session_restore_delegate.h" |
15 #include "chrome/browser/sessions/tab_loader_delegate.h" | 18 #include "chrome/browser/sessions/tab_loader_delegate.h" |
16 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
18 | 21 |
19 namespace content { | 22 namespace content { |
20 class NavigationController; | 23 class NavigationController; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // explicitly referenced so that it can be notified of deferred tab loads due | 145 // explicitly referenced so that it can be notified of deferred tab loads due |
143 // to memory pressure. | 146 // to memory pressure. |
144 scoped_refptr<SessionRestoreStatsCollector> stats_collector_; | 147 scoped_refptr<SessionRestoreStatsCollector> stats_collector_; |
145 | 148 |
146 static TabLoader* shared_tab_loader_; | 149 static TabLoader* shared_tab_loader_; |
147 | 150 |
148 DISALLOW_COPY_AND_ASSIGN(TabLoader); | 151 DISALLOW_COPY_AND_ASSIGN(TabLoader); |
149 }; | 152 }; |
150 | 153 |
151 #endif // CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ | 154 #endif // CHROME_BROWSER_SESSIONS_TAB_LOADER_H_ |
OLD | NEW |