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

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: 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..82666cad6d3a5b3a380188657e0cf8dbca4de8bf
--- /dev/null
+++ b/chrome/browser/sessions/session_restore_delegate.h
@@ -0,0 +1,29 @@
+// 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);
+};
sky 2015/04/01 22:41:46 private: DISALLOW_IMPLICIT_CONSTRUCTORS.
Georges Khalil 2015/04/01 23:30:21 Done.
+
+#endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698