OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ | 5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ |
6 #define IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ | 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // A CRWSessionEntry is similar to a NavigationEntry object in desktop Chrome. | 57 // A CRWSessionEntry is similar to a NavigationEntry object in desktop Chrome. |
58 // It maintains the information needed to save/restore a single entry in session | 58 // It maintains the information needed to save/restore a single entry in session |
59 // history (i.e., one site) for a tab. A tab may have multiple of these objects | 59 // history (i.e., one site) for a tab. A tab may have multiple of these objects |
60 // comprising its entire session history. | 60 // comprising its entire session history. |
61 // DEPRECATED, do not use this class and do not add any methods to it. | 61 // DEPRECATED, do not use this class and do not add any methods to it. |
62 // Use web::NavigationItem instead. | 62 // Use web::NavigationItem instead. |
63 // TODO(crbug.com/454984): Remove this class. | 63 // TODO(crbug.com/454984): Remove this class. |
64 @interface CRWSessionEntry : NSObject<NSCoding, NSCopying> | 64 @interface CRWSessionEntry : NSObject<NSCoding, NSCopying> |
65 | 65 |
66 @property(nonatomic, readonly) const GURL& originalUrl; | |
67 | |
68 // Pointer to the NavigationItem associated with this CRWSessionEntry. | 66 // Pointer to the NavigationItem associated with this CRWSessionEntry. |
69 // Eventually, this will replace CRWSessionEntry entirely. | 67 // Eventually, this will replace CRWSessionEntry entirely. |
70 @property(nonatomic, readonly) web::NavigationItem* navigationItem; | 68 @property(nonatomic, readonly) web::NavigationItem* navigationItem; |
71 | 69 |
72 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry. | 70 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry. |
73 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; | 71 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; |
74 | 72 |
75 // Initialize the session entry with the given NavigationItem. | 73 // Initialize the session entry with the given NavigationItem. |
76 - (instancetype)initWithNavigationItem: | 74 - (instancetype)initWithNavigationItem: |
77 (std::unique_ptr<web::NavigationItem>)item; | 75 (std::unique_ptr<web::NavigationItem>)item; |
78 | 76 |
79 @end | 77 @end |
80 | 78 |
81 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ | 79 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ |
OLD | NEW |