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

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

Issue 2811593004: [ios] Allow having multiple session windows in a session. (Closed)
Patch Set: Address comments. 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
« no previous file with comments | « ios/chrome/browser/sessions/BUILD.gn ('k') | ios/chrome/browser/sessions/session_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e7098a8ab76775bd8117531ffcb05064dc3ab0c7
--- /dev/null
+++ b/ios/chrome/browser/sessions/session_ios.h
@@ -0,0 +1,24 @@
+// 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. A session is a set of
+// one or more session windows that share the same browser state.
+@interface SessionIOS : NSObject<NSCoding>
+
+- (instancetype)initWithWindows:(NSArray<SessionWindowIOS*>*)sessionWindows
+ NS_DESIGNATED_INITIALIZER;
+
+// The serialized SessionWindowIOS objects. May be empty but never nil.
+@property(nonatomic, readonly) NSArray<SessionWindowIOS*>* sessionWindows;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_IOS_H_
« no previous file with comments | « ios/chrome/browser/sessions/BUILD.gn ('k') | ios/chrome/browser/sessions/session_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698