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

Side by Side Diff: components/sessions/core/tab_restore_service.h

Issue 2345763002: Fix tabs duplication when restoring last closed window. (Closed)
Patch Set: Fix comments. Created 4 years, 2 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 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ 5 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_
6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 // Loads the tabs and previous session. This does nothing if the tabs 176 // Loads the tabs and previous session. This does nothing if the tabs
177 // from the previous session have already been loaded. 177 // from the previous session have already been loaded.
178 virtual void LoadTabsFromLastSession() = 0; 178 virtual void LoadTabsFromLastSession() = 0;
179 179
180 // Returns true if the tab entries have been loaded. 180 // Returns true if the tab entries have been loaded.
181 virtual bool IsLoaded() const = 0; 181 virtual bool IsLoaded() const = 0;
182 182
183 // Deletes the last session. 183 // Deletes the last session.
184 virtual void DeleteLastSession() = 0; 184 virtual void DeleteLastSession() = 0;
185
186 // Returns true if we're in the process of restoring some entries.
187 virtual bool IsRestoring() const = 0;
185 }; 188 };
186 189
187 // A class that is used to associate platform-specific data with 190 // A class that is used to associate platform-specific data with
188 // TabRestoreService::Tab. See LiveTab::GetPlatformSpecificTabData(). 191 // TabRestoreService::Tab. See LiveTab::GetPlatformSpecificTabData().
189 class SESSIONS_EXPORT PlatformSpecificTabData { 192 class SESSIONS_EXPORT PlatformSpecificTabData {
190 public: 193 public:
191 virtual ~PlatformSpecificTabData(); 194 virtual ~PlatformSpecificTabData();
192 }; 195 };
193 196
194 } // namespace sessions 197 } // namespace sessions
195 198
196 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ 199 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sessions/core/persistent_tab_restore_service.cc ('k') | components/sessions/core/tab_restore_service_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698