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

Unified Diff: ios/chrome/browser/sessions/session_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_ios.h
diff --git a/ios/chrome/browser/sessions/session_ios.h b/ios/chrome/browser/sessions/session_ios.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e8981403a9230a4c019f093034c15e801c5ccf2
--- /dev/null
+++ b/ios/chrome/browser/sessions/session_ios.h
@@ -0,0 +1,23 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_SESSIONS_SESSION_IOS_H_
+#define IOS_CHROME_BROWSER_SESSIONS_SESSION_IOS_H_
+
+#import <Foundation/Foundation.h>
+
+@class SessionWindowIOS;
+
+// Encapsulates everything required to save a session.
marq (ping after 24h) 2017/04/18 15:16:55 Maybe add " A session is a set of one or more sess
sdefresne 2017/04/19 14:54:41 Done.
+@interface SessionIOS : NSObject<NSCoding>
+
+- (instancetype)initWithWindows:(NSArray<SessionWindowIOS*>*)sessionWindows
+ NS_DESIGNATED_INITIALIZER;
+
+// The serialized SessionWindowIOS objects.
marq (ping after 24h) 2017/04/18 15:16:55 May be empty but never nil?
sdefresne 2017/04/19 14:54:41 Done.
+@property(nonatomic, readonly) NSArray<SessionWindowIOS*>* sessionWindows;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_IOS_H_

Powered by Google App Engine
This is Rietveld 408576698