Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: ios/web/navigation/crw_session_entry.h

Issue 2672723003: Converted CRWSessionController to use NavigationItems. (Closed)
Patch Set: test fixes, self review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 } 21 }
22 22
23 // A CRWSessionEntry is similar to a NavigationEntry object in desktop Chrome. 23 // A CRWSessionEntry is similar to a NavigationEntry object in desktop Chrome.
24 // It maintains the information needed to save/restore a single entry in session 24 // It maintains the information needed to save/restore a single entry in session
25 // history (i.e., one site) for a tab. A tab may have multiple of these objects 25 // history (i.e., one site) for a tab. A tab may have multiple of these objects
26 // comprising its entire session history. 26 // comprising its entire session history.
27 // DEPRECATED, do not use this class and do not add any methods to it. 27 // DEPRECATED, do not use this class and do not add any methods to it.
28 // Use web::NavigationItem instead. 28 // Use web::NavigationItem instead.
29 // TODO(crbug.com/454984): Remove this class. 29 // TODO(crbug.com/454984): Remove this class.
30 @interface CRWSessionEntry : NSObject<NSCopying> 30 @interface CRWSessionEntry : NSObject
31 31
32 // Pointer to the NavigationItem associated with this CRWSessionEntry. 32 // Pointer to the NavigationItem associated with this CRWSessionEntry.
33 // Eventually, this will replace CRWSessionEntry entirely. 33 // Eventually, this will replace CRWSessionEntry entirely.
34 @property(nonatomic, readonly) web::NavigationItem* navigationItem; 34 @property(nonatomic, readonly) web::NavigationItem* navigationItem;
35 35
36 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry. 36 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry.
37 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl; 37 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl;
38 38
39 // Initialize the session entry with the given NavigationItem. 39 // Initialize the session entry with the given NavigationItem.
40 - (instancetype)initWithNavigationItem: 40 - (instancetype)initWithNavigationItem:(web::NavigationItemImpl*)item;
41 (std::unique_ptr<web::NavigationItem>)item;
42 41
43 @end 42 @end
44 43
45 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_ 44 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/crw_session_controller_unittest.mm ('k') | ios/web/navigation/crw_session_entry.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698