OLD | NEW |
(Empty) | |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_RESTORE_HELPER_H_ |
| 6 #define IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_RESTORE_HELPER_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 namespace ios { |
| 11 class ChromeBrowserState; |
| 12 } |
| 13 |
| 14 @class TabModel; |
| 15 |
| 16 // Helper class for handling session restoration after a crash. |
| 17 @interface CrashRestoreHelper : NSObject |
| 18 |
| 19 - (id)initWithBrowserState:(ios::ChromeBrowserState*)browserState; |
| 20 |
| 21 // Saves the session information stored on disk in temporary files and will |
| 22 // then delete those from their default location. This will ensure that the |
| 23 // user will then start from scratch, while allowing restoring their old |
| 24 // sessions. |
| 25 - (void)moveAsideSessionInformation; |
| 26 |
| 27 // Shows an infobar on the currently selected tab of the given |tabModel|. This |
| 28 // infobar lets the user restore its session after a crash. |
| 29 - (void)showRestoreIfNeeded:(TabModel*)tabModel; |
| 30 |
| 31 @end |
| 32 |
| 33 #endif // IOS_CHROME_BROWSER_CRASH_REPORT_CRASH_RESTORE_HELPER_H_ |
OLD | NEW |