| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |