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

Unified Diff: chrome/browser/sessions/session_restore_delegate.h

Issue 1052733002: Decouple TabLoader from SessionRestore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky@ review. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sessions/session_restore_delegate.h
diff --git a/chrome/browser/sessions/session_restore_delegate.h b/chrome/browser/sessions/session_restore_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..01896764f7e28f31162e7eb3a472ba616799a1f1
--- /dev/null
+++ b/chrome/browser/sessions/session_restore_delegate.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_
+#define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_
+
+#include <vector>
+
+#include "base/time/time.h"
+
+namespace content {
+class WebContents;
+}
+
+// SessionRestoreDelegate is responsible for creating the tab loader and the
+// stats tracker.
+class SessionRestoreDelegate {
+ public:
+ struct RestoredTab {
+ content::WebContents* contents;
+ bool is_active;
+ };
+
+ static void RestoreTabs(const std::vector<RestoredTab>& tabs,
+ const base::TimeTicks& restore_started);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(SessionRestoreDelegate);
+};
+
+#endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698