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. | |
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.
| |
13 @interface SessionIOS : NSObject<NSCoding> | |
14 | |
15 - (instancetype)initWithWindows:(NSArray<SessionWindowIOS*>*)sessionWindows | |
16 NS_DESIGNATED_INITIALIZER; | |
17 | |
18 // 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.
| |
19 @property(nonatomic, readonly) NSArray<SessionWindowIOS*>* sessionWindows; | |
20 | |
21 @end | |
22 | |
23 #endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_IOS_H_ | |
OLD | NEW |