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

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

Issue 2699253002: Removed CRWSessionEntry unittests. (Closed)
Patch Set: add ifndef 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 122 // Returns the title string to be used for a page with |url| if that page
123 // doesn't specify a title. 123 // doesn't specify a title.
124 static base::string16 GetDisplayTitleForURL(const GURL& url); 124 static base::string16 GetDisplayTitleForURL(const GURL& url);
125 125
126 #ifndef NDEBUG
127 // Returns a human-readable description of the state for debugging purposes.
128 NSString* GetDescription() const;
129 #endif
130
126 private: 131 private:
127 // The NavigationManItemStorageBuilder functions require access to 132 // The NavigationManItemStorageBuilder functions require access to
128 // private variables of NavigationItemImpl. 133 // private variables of NavigationItemImpl.
129 friend NavigationItemStorageBuilder; 134 friend NavigationItemStorageBuilder;
130 135
131 int unique_id_; 136 int unique_id_;
132 GURL original_request_url_; 137 GURL original_request_url_;
133 GURL url_; 138 GURL url_;
134 Referrer referrer_; 139 Referrer referrer_;
135 GURL virtual_url_; 140 GURL virtual_url_;
(...skipping 27 matching lines...) Expand all
163 168
164 // Weak pointer to the facade delegate. 169 // Weak pointer to the facade delegate.
165 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; 170 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_;
166 171
167 // Copy and assignment is explicitly allowed for this class. 172 // Copy and assignment is explicitly allowed for this class.
168 }; 173 };
169 174
170 } // namespace web 175 } // namespace web
171 176
172 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ 177 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/crw_session_entry_unittest.mm ('k') | ios/web/navigation/navigation_item_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698