Chromium Code Reviews| 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_ |