| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const PageDisplayState& GetPageDisplayState() const override; | 58 const PageDisplayState& GetPageDisplayState() const override; |
| 59 const base::string16& GetTitleForDisplay() const override; | 59 const base::string16& GetTitleForDisplay() const override; |
| 60 void SetTransitionType(ui::PageTransition transition_type) override; | 60 void SetTransitionType(ui::PageTransition transition_type) override; |
| 61 ui::PageTransition GetTransitionType() const override; | 61 ui::PageTransition GetTransitionType() const override; |
| 62 const FaviconStatus& GetFavicon() const override; | 62 const FaviconStatus& GetFavicon() const override; |
| 63 FaviconStatus& GetFavicon() override; | 63 FaviconStatus& GetFavicon() override; |
| 64 const SSLStatus& GetSSL() const override; | 64 const SSLStatus& GetSSL() const override; |
| 65 SSLStatus& GetSSL() override; | 65 SSLStatus& GetSSL() override; |
| 66 void SetTimestamp(base::Time timestamp) override; | 66 void SetTimestamp(base::Time timestamp) override; |
| 67 base::Time GetTimestamp() const override; | 67 base::Time GetTimestamp() const override; |
| 68 void SetIsOverridingUserAgent(bool is_overriding_user_agent) override; | 68 void SetUserAgentType(UserAgentType type) override; |
| 69 bool IsOverridingUserAgent() const override; | 69 UserAgentType GetUserAgentType() const override; |
| 70 bool HasPostData() const override; | 70 bool HasPostData() const override; |
| 71 NSDictionary* GetHttpRequestHeaders() const override; | 71 NSDictionary* GetHttpRequestHeaders() const override; |
| 72 void AddHttpRequestHeaders(NSDictionary* additional_headers) override; | 72 void AddHttpRequestHeaders(NSDictionary* additional_headers) override; |
| 73 | 73 |
| 74 // Serialized representation of the state object that was used in conjunction | 74 // Serialized representation of the state object that was used in conjunction |
| 75 // with a JavaScript window.history.pushState() or | 75 // with a JavaScript window.history.pushState() or |
| 76 // window.history.replaceState() call that created or modified this | 76 // window.history.replaceState() call that created or modified this |
| 77 // CRWSessionEntry. Intended to be used for JavaScript history operations and | 77 // CRWSessionEntry. Intended to be used for JavaScript history operations and |
| 78 // will be nil in most cases. | 78 // will be nil in most cases. |
| 79 void SetSerializedStateObject(NSString* serialized_state_object); | 79 void SetSerializedStateObject(NSString* serialized_state_object); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 GURL original_request_url_; | 128 GURL original_request_url_; |
| 129 GURL url_; | 129 GURL url_; |
| 130 Referrer referrer_; | 130 Referrer referrer_; |
| 131 GURL virtual_url_; | 131 GURL virtual_url_; |
| 132 base::string16 title_; | 132 base::string16 title_; |
| 133 PageDisplayState page_display_state_; | 133 PageDisplayState page_display_state_; |
| 134 ui::PageTransition transition_type_; | 134 ui::PageTransition transition_type_; |
| 135 FaviconStatus favicon_; | 135 FaviconStatus favicon_; |
| 136 SSLStatus ssl_; | 136 SSLStatus ssl_; |
| 137 base::Time timestamp_; | 137 base::Time timestamp_; |
| 138 bool is_overriding_user_agent_; | 138 UserAgentType user_agent_type_; |
| 139 base::scoped_nsobject<NSMutableDictionary> http_request_headers_; | 139 base::scoped_nsobject<NSMutableDictionary> http_request_headers_; |
| 140 | 140 |
| 141 base::scoped_nsobject<NSString> serialized_state_object_; | 141 base::scoped_nsobject<NSString> serialized_state_object_; |
| 142 bool is_created_from_push_state_; | 142 bool is_created_from_push_state_; |
| 143 bool has_state_been_replaced_; | 143 bool has_state_been_replaced_; |
| 144 bool is_created_from_hash_change_; | 144 bool is_created_from_hash_change_; |
| 145 bool should_skip_repost_form_confirmation_; | 145 bool should_skip_repost_form_confirmation_; |
| 146 base::scoped_nsobject<NSData> post_data_; | 146 base::scoped_nsobject<NSData> post_data_; |
| 147 | 147 |
| 148 // The navigation initiation type of the item. This decides whether the URL | 148 // The navigation initiation type of the item. This decides whether the URL |
| (...skipping 10 matching lines...) Expand all Loading... |
| 159 | 159 |
| 160 // Weak pointer to the facade delegate. | 160 // Weak pointer to the facade delegate. |
| 161 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; | 161 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; |
| 162 | 162 |
| 163 // Copy and assignment is explicitly allowed for this class. | 163 // Copy and assignment is explicitly allowed for this class. |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace web | 166 } // namespace web |
| 167 | 167 |
| 168 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ | 168 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ |
| OLD | NEW |