OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_SESSIONS_SESSION_IOS_H_ |
| 6 #define IOS_CHROME_BROWSER_SESSIONS_SESSION_IOS_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @class SessionWindowIOS; |
| 11 |
| 12 // Encapsulates everything required to save a session. A session is a set of |
| 13 // one or more session windows that share the same browser state. |
| 14 @interface SessionIOS : NSObject<NSCoding> |
| 15 |
| 16 - (instancetype)initWithWindows:(NSArray<SessionWindowIOS*>*)sessionWindows |
| 17 NS_DESIGNATED_INITIALIZER; |
| 18 |
| 19 // The serialized SessionWindowIOS objects. May be empty but never nil. |
| 20 @property(nonatomic, readonly) NSArray<SessionWindowIOS*>* sessionWindows; |
| 21 |
| 22 @end |
| 23 |
| 24 #endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_IOS_H_ |
OLD | NEW |