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

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

Issue 21656002: Return webcontents and add in test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/tab_restore_service_helper.h
diff --git a/chrome/browser/sessions/tab_restore_service_helper.h b/chrome/browser/sessions/tab_restore_service_helper.h
index 3eacc6070796db45230262b83416ff13328a0483..e1a80fbee2a913b53180f0907300026889c20e36 100644
--- a/chrome/browser/sessions/tab_restore_service_helper.h
+++ b/chrome/browser/sessions/tab_restore_service_helper.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_HELPER_H_
#include <set>
+#include <vector>
#include "base/basictypes.h"
#include "base/observer_list.h"
@@ -79,13 +80,15 @@ class TabRestoreServiceHelper {
void BrowserClosed(TabRestoreServiceDelegate* delegate);
void ClearEntries();
const Entries& entries() const;
- void RestoreMostRecentEntry(TabRestoreServiceDelegate* delegate,
- chrome::HostDesktopType host_desktop_type);
+ std::vector<content::WebContents*> RestoreMostRecentEntry(
+ TabRestoreServiceDelegate* delegate,
+ chrome::HostDesktopType host_desktop_type);
Tab* RemoveTabEntryById(SessionID::id_type id);
- void RestoreEntryById(TabRestoreServiceDelegate* delegate,
- SessionID::id_type id,
- chrome::HostDesktopType host_desktop_type,
- WindowOpenDisposition disposition);
+ std::vector<content::WebContents*> RestoreEntryById(
+ TabRestoreServiceDelegate* delegate,
+ SessionID::id_type id,
+ chrome::HostDesktopType host_desktop_type,
+ WindowOpenDisposition disposition);
// Notifies observers the tabs have changed.
void NotifyTabsChanged();
@@ -133,7 +136,8 @@ class TabRestoreServiceHelper {
const Tab& tab,
TabRestoreServiceDelegate* delegate,
chrome::HostDesktopType host_desktop_type,
- WindowOpenDisposition disposition);
+ WindowOpenDisposition disposition,
+ content::WebContents** contents);
sky 2013/08/05 16:16:17 Document |contents|.
Kristen Dwan 2013/08/05 18:01:38 Done.
// Returns true if |tab| has more than one navigation. If |tab| has more
// than one navigation |tab->current_navigation_index| is constrained based

Powered by Google App Engine
This is Rietveld 408576698