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

Side by Side Diff: components/sessions/core/persistent_tab_restore_service.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #include "components/sessions/core/persistent_tab_restore_service.h" 5 #include "components/sessions/core/persistent_tab_restore_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 #include <utility> 10 #include <utility>
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 941
942 void PersistentTabRestoreService::ClearEntries() { 942 void PersistentTabRestoreService::ClearEntries() {
943 helper_.ClearEntries(); 943 helper_.ClearEntries();
944 } 944 }
945 945
946 const TabRestoreService::Entries& PersistentTabRestoreService::entries() const { 946 const TabRestoreService::Entries& PersistentTabRestoreService::entries() const {
947 return helper_.entries(); 947 return helper_.entries();
948 } 948 }
949 949
950 std::vector<LiveTab*> PersistentTabRestoreService::RestoreMostRecentEntry( 950 std::vector<LiveTab*> PersistentTabRestoreService::RestoreMostRecentEntry(
951 LiveTabContext* context, 951 LiveTabContext* context) {
952 int host_desktop_type) { 952 return helper_.RestoreMostRecentEntry(context);
953 return helper_.RestoreMostRecentEntry(context, host_desktop_type);
954 } 953 }
955 954
956 TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById( 955 TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById(
957 SessionID::id_type id) { 956 SessionID::id_type id) {
958 return helper_.RemoveTabEntryById(id); 957 return helper_.RemoveTabEntryById(id);
959 } 958 }
960 959
961 std::vector<LiveTab*> PersistentTabRestoreService::RestoreEntryById( 960 std::vector<LiveTab*> PersistentTabRestoreService::RestoreEntryById(
962 LiveTabContext* context, 961 LiveTabContext* context,
963 SessionID::id_type id, 962 SessionID::id_type id,
964 int host_desktop_type,
965 WindowOpenDisposition disposition) { 963 WindowOpenDisposition disposition) {
966 return helper_.RestoreEntryById(context, id, host_desktop_type, disposition); 964 return helper_.RestoreEntryById(context, id, disposition);
967 } 965 }
968 966
969 bool PersistentTabRestoreService::IsLoaded() const { 967 bool PersistentTabRestoreService::IsLoaded() const {
970 return delegate_->IsLoaded(); 968 return delegate_->IsLoaded();
971 } 969 }
972 970
973 void PersistentTabRestoreService::DeleteLastSession() { 971 void PersistentTabRestoreService::DeleteLastSession() {
974 return delegate_->DeleteLastSession(); 972 return delegate_->DeleteLastSession();
975 } 973 }
976 974
977 void PersistentTabRestoreService::Shutdown() { 975 void PersistentTabRestoreService::Shutdown() {
978 return delegate_->Shutdown(); 976 return delegate_->Shutdown();
979 } 977 }
980 978
981 void PersistentTabRestoreService::LoadTabsFromLastSession() { 979 void PersistentTabRestoreService::LoadTabsFromLastSession() {
982 delegate_->LoadTabsFromLastSession(); 980 delegate_->LoadTabsFromLastSession();
983 } 981 }
984 982
985 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() { 983 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() {
986 return &helper_.entries_; 984 return &helper_.entries_;
987 } 985 }
988 986
989 void PersistentTabRestoreService::PruneEntries() { 987 void PersistentTabRestoreService::PruneEntries() {
990 helper_.PruneEntries(); 988 helper_.PruneEntries();
991 } 989 }
992 990
993 } // namespace sessions 991 } // namespace sessions
OLDNEW
« no previous file with comments | « components/sessions/core/persistent_tab_restore_service.h ('k') | components/sessions/core/tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698