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_ |