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

Side by Side Diff: chrome/browser/sessions/session_restore_delegate.h

Issue 1087063003: [Session restore] Expose lazy mode and fix browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore default behavior. Created 5 years, 8 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 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_SESSION_RESTORE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 // SessionRestoreDelegate is responsible for creating the tab loader and the 16 // SessionRestoreDelegate is responsible for creating the tab loader and the
17 // stats collector. 17 // stats collector.
18 class SessionRestoreDelegate { 18 class SessionRestoreDelegate {
19 public: 19 public:
20 struct RestoredTab { 20 struct RestoredTab {
21 content::WebContents* contents; 21 content::WebContents* contents;
22 bool is_active; 22 bool is_active;
23 }; 23 };
24 24
25 static void RestoreTabs(const std::vector<RestoredTab>& tabs, 25 static void RestoreTabs(const std::vector<RestoredTab>& tabs,
26 const base::TimeTicks& restore_started); 26 const base::TimeTicks& restore_started,
27 bool active_only);
27 28
28 private: 29 private:
29 DISALLOW_IMPLICIT_CONSTRUCTORS(SessionRestoreDelegate); 30 DISALLOW_IMPLICIT_CONSTRUCTORS(SessionRestoreDelegate);
30 }; 31 };
31 32
32 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_ 33 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698