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

Unified Diff: components/sessions/core/tab_restore_service.h

Issue 1697183003: Remove HostDesktopType from sessions and tab restore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-19
Patch Set: mac Created 4 years, 10 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: components/sessions/core/tab_restore_service.h
diff --git a/components/sessions/core/tab_restore_service.h b/components/sessions/core/tab_restore_service.h
index c96ece315e7a7119badabd8dc2bc3e269ebcf448..9d10594890da917b4c8f3730b371bbfef4a454d1 100644
--- a/components/sessions/core/tab_restore_service.h
+++ b/components/sessions/core/tab_restore_service.h
@@ -156,13 +156,9 @@ class SESSIONS_EXPORT TabRestoreService : public KeyedService {
// Restores the most recently closed entry. Does nothing if there are no
// entries to restore. If the most recently restored entry is a tab, it is
- // added to |context|. |host_desktop_type| is a value that is opaque to this
- // class and will be used only to pass back to the embedder via
- // TabRestoreServiceClient if necessary. Returns the LiveTab instances of the
- // restored tab(s).
+ // added to |context|. Returns the LiveTab instances of the restored tab(s).
virtual std::vector<LiveTab*> RestoreMostRecentEntry(
- LiveTabContext* context,
- int host_desktop_type) = 0;
+ LiveTabContext* context) = 0;
// Removes the Tab with id |id| from the list and returns it; ownership is
// passed to the caller.
@@ -172,14 +168,11 @@ class SESSIONS_EXPORT TabRestoreService : public KeyedService {
// this does nothing. If |context| is NULL, this creates a new window for the
// entry. |disposition| is respected, but the attributes (tabstrip index,
// browser window) of the tab when it was closed will be respected if
- // disposition is UNKNOWN. |host_desktop_type| is a value that is opaque to
- // this class and will be used only to pass back to the embedder via
- // TabRestoreServiceClient if necessary. Returns the LiveTab instances of the
- // restored tab(s).
+ // disposition is UNKNOWN. Returns the LiveTab instances of the restored
+ // tab(s).
virtual std::vector<LiveTab*> RestoreEntryById(
LiveTabContext* context,
SessionID::id_type id,
- int host_desktop_type,
WindowOpenDisposition disposition) = 0;
// Loads the tabs and previous session. This does nothing if the tabs
« no previous file with comments | « components/sessions/core/persistent_tab_restore_service.cc ('k') | components/sessions/core/tab_restore_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698