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

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

Issue 2737203002: Remove CRWSessionEntry. (Closed)
Patch Set: fix XCode-clang build Created 3 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_
6 #define IOS_WEB_NAVIGATION_CRW_SESSION_ENTRY_H_
7
8 #import <Foundation/Foundation.h>
9 #include <stdint.h>
10
11 #include <memory>
12
13 #include "base/strings/string16.h"
14 #include "base/time/time.h"
15 #include "ui/base/page_transition_types.h"
16 #include "url/gurl.h"
17
18 namespace web {
19 class NavigationItem;
20 class NavigationItemImpl;
21 }
22
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
25 // history (i.e., one site) for a tab. A tab may have multiple of these objects
26 // comprising its entire session history.
27 // DEPRECATED, do not use this class and do not add any methods to it.
28 // Use web::NavigationItem instead.
29 // TODO(crbug.com/454984): Remove this class.
30 @interface CRWSessionEntry : NSObject<NSCopying>
31
32 // Pointer to the NavigationItem associated with this CRWSessionEntry.
33 // Eventually, this will replace CRWSessionEntry entirely.
34 @property(nonatomic, readonly) web::NavigationItem* navigationItem;
35
36 // Pointer to the NavigationItemImpl associated with this CRWSessionEntry.
37 @property(nonatomic, readonly) web::NavigationItemImpl* navigationItemImpl;
38
39 // Initialize the session entry with the given NavigationItem.
40 - (instancetype)initWithNavigationItem:
41 (std::unique_ptr<web::NavigationItem>)item;
42
43 @end
44
45 #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