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

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

Issue 2722983003: Reland Tab History and BrowserViewController CRWSessionEntry removal. (Closed)
Patch Set: TODO, early return 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
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/navigation/navigation_item_impl.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NAVIGATION_ITEM_IMPL_H_ 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_
6 #define IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ 6 #define IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Removes the header for |key| from |http_request_headers_|. 112 // Removes the header for |key| from |http_request_headers_|.
113 void RemoveHttpRequestHeaderForKey(NSString* key); 113 void RemoveHttpRequestHeaderForKey(NSString* key);
114 114
115 // Removes all http headers from |http_request_headers_|. 115 // Removes all http headers from |http_request_headers_|.
116 void ResetHttpRequestHeaders(); 116 void ResetHttpRequestHeaders();
117 117
118 // Once a navigation item is committed, we should no longer track 118 // Once a navigation item is committed, we should no longer track
119 // non-persisted state, as documented on the members below. 119 // non-persisted state, as documented on the members below.
120 void ResetForCommit(); 120 void ResetForCommit();
121 121
122 // Returns the title string to be used for a page with |url| if that page
123 // doesn't specify a title.
124 static base::string16 GetDisplayTitleForURL(const GURL& url);
125
122 private: 126 private:
123 // The NavigationManItemStorageBuilder functions require access to 127 // The NavigationManItemStorageBuilder functions require access to
124 // private variables of NavigationItemImpl. 128 // private variables of NavigationItemImpl.
125 friend NavigationItemStorageBuilder; 129 friend NavigationItemStorageBuilder;
126 130
127 int unique_id_; 131 int unique_id_;
128 GURL original_request_url_; 132 GURL original_request_url_;
129 GURL url_; 133 GURL url_;
130 Referrer referrer_; 134 Referrer referrer_;
131 GURL virtual_url_; 135 GURL virtual_url_;
(...skipping 27 matching lines...) Expand all
159 163
160 // Weak pointer to the facade delegate. 164 // Weak pointer to the facade delegate.
161 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; 165 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_;
162 166
163 // Copy and assignment is explicitly allowed for this class. 167 // Copy and assignment is explicitly allowed for this class.
164 }; 168 };
165 169
166 } // namespace web 170 } // namespace web
167 171
168 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ 172 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/navigation/navigation_item_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698