| 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 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "ui/base/page_transition_types.h" | 15 #include "ui/base/page_transition_types.h" |
| 16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 17 | 17 |
| 18 namespace web { | 18 namespace web { |
| 19 class NavigationItem; | 19 class NavigationItem; |
| 20 class NavigationItemImpl; | 20 class NavigationItemImpl; |
| 21 struct Referrer; | |
| 22 | 21 |
| 23 // Keys used to serialize web::PageScrollState properties. | 22 // Keys used to serialize web::PageScrollState properties. |
| 24 extern NSString* const kSessionEntryPageScrollStateKey; | 23 extern NSString* const kSessionEntryPageScrollStateKey; |
| 25 extern NSString* const kSessionEntryScrollOffsetXKey; | 24 extern NSString* const kSessionEntryScrollOffsetXKey; |
| 26 extern NSString* const kSessionEntryScrollOffsetYKey; | 25 extern NSString* const kSessionEntryScrollOffsetYKey; |
| 27 extern NSString* const kSessionEntryMinimumZoomScaleKey; | 26 extern NSString* const kSessionEntryMinimumZoomScaleKey; |
| 28 extern NSString* const kSessionEntryMaximumZoomScaleKey; | 27 extern NSString* const kSessionEntryMaximumZoomScaleKey; |
| 29 extern NSString* const kSessionEntryZoomScaleKey; | 28 extern NSString* const kSessionEntryZoomScaleKey; |
| 30 | 29 |
| 31 // Keys used to serialize navigation properties. | 30 // Keys used to serialize navigation properties. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry. | 70 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry. |
| 72 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; | 71 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; |
| 73 | 72 |
| 74 // Initialize the session entry with the given NavigationItem. | 73 // Initialize the session entry with the given NavigationItem. |
| 75 - (instancetype)initWithNavigationItem: | 74 - (instancetype)initWithNavigationItem: |
| 76 (std::unique_ptr<web::NavigationItem>)item; | 75 (std::unique_ptr<web::NavigationItem>)item; |
| 77 | 76 |
| 78 @end | 77 @end |
| 79 | 78 |
| 80 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ | 79 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ |
| OLD | NEW |