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

Unified Diff: ios/chrome/browser/sessions/session_service_ios.h

Issue 2811593004: [ios] Allow having multiple session windows in a session. (Closed)
Patch Set: Rebase on origin/master. Created 3 years, 8 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: ios/chrome/browser/sessions/session_service_ios.h
diff --git a/ios/chrome/browser/sessions/session_service_ios.h b/ios/chrome/browser/sessions/session_service_ios.h
index ae3b99d60c5075b14e4e473651fb9ed81a2daa1c..c37bd8bb213ddc867668e3b5c4a5f4e96b2aa7b3 100644
--- a/ios/chrome/browser/sessions/session_service_ios.h
+++ b/ios/chrome/browser/sessions/session_service_ios.h
@@ -9,7 +9,7 @@
#include "base/sequenced_task_runner.h"
-@class SessionWindowIOS;
+@class SessionIOS;
// A singleton service for saving the current session. Can either save on a
// delay or immediately. Saving is always performed on a separate thread.
@@ -24,22 +24,22 @@
(const scoped_refptr<base::SequencedTaskRunner>&)taskRunner
NS_DESIGNATED_INITIALIZER;
-// Saves the session represented by |sessionWindow| to |directory| on disk. If
-// |immediately| is NO, the save is done after a delay. If another call is
-// pending, this one is ignored. If YES, the save is done now, cancelling any
-// pending calls. Either way, the save is done on a separate thread to avoid
-// blocking the UI thread.
-- (void)saveSessionWindow:(SessionWindowIOS*)sessionWindow
- directory:(NSString*)directory
- immediately:(BOOL)immediately;
-
-// Loads the session window from default session file in |directory| on the
-// main thread. Returns nil in case of errors.
-- (SessionWindowIOS*)loadSessionWindowFromDirectory:(NSString*)directory;
-
-// Loads the session window from |sessionPath| on the main thread. Returns nil
-// in case of errors.
-- (SessionWindowIOS*)loadSessionWindowFromPath:(NSString*)sessionPath;
+// Saves the session represented by |session| to |directory|. If |immediately|
+// is NO, the save is done after a delay. If another call is pending, this one
+// is ignored. If YES, the save is done now, cancelling any pending calls.
+// Either way, the save is done on a separate thread to avoid blocking the UI
+// thread.
+- (void)saveSession:(SessionIOS*)sessionWindow
+ directory:(NSString*)directory
+ immediately:(BOOL)immediately;
+
+// Loads the session from default session file in |directory| on the main
+// thread. Returns nil in case of errors.
+- (SessionIOS*)loadSessionFromDirectory:(NSString*)directory;
+
+// Loads the session from |sessionPath| on the main thread. Returns nil in case
+// of errors.
+- (SessionIOS*)loadSessionFromPath:(NSString*)sessionPath;
// Schedules deletion of the file containing the last session in |directory|.
- (void)deleteLastSessionFileInDirectory:(NSString*)directory;

Powered by Google App Engine
This is Rietveld 408576698