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 #include "chrome/browser/sessions/tab_loader.h" | 5 #include "chrome/browser/sessions/tab_loader.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/memory_pressure_monitor.h" | 10 #include "base/memory/memory_pressure_monitor.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/browser/sessions/session_restore_stats_collector.h" | 15 #include "chrome/browser/sessions/session_restore_stats_collector.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/browser_finder.h" | 17 #include "chrome/browser/ui/browser_finder.h" |
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
19 #include "components/favicon/content/content_favicon_driver.h" | 19 #include "components/favicon/content/content_favicon_driver.h" |
20 #include "components/variations/variations_associated_data.h" | 20 #include "components/variations/variations_associated_data.h" |
21 #include "content/public/browser/navigation_controller.h" | 21 #include "content/public/browser/navigation_controller.h" |
22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // memory pressure. | 268 // memory pressure. |
269 stats_collector_->DeferTab(tab); | 269 stats_collector_->DeferTab(tab); |
270 } | 270 } |
271 // By calling |LoadNextTab| explicitly, we make sure that the | 271 // By calling |LoadNextTab| explicitly, we make sure that the |
272 // |NOTIFICATION_SESSION_RESTORE_DONE| event gets sent. | 272 // |NOTIFICATION_SESSION_RESTORE_DONE| event gets sent. |
273 LoadNextTab(); | 273 LoadNextTab(); |
274 } | 274 } |
275 | 275 |
276 // static | 276 // static |
277 TabLoader* TabLoader::shared_tab_loader_ = nullptr; | 277 TabLoader* TabLoader::shared_tab_loader_ = nullptr; |
OLD | NEW |