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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 base::Time GetTimestamp() const override; | 67 base::Time GetTimestamp() const override; |
68 void SetUserAgentType(UserAgentType type) override; | 68 void SetUserAgentType(UserAgentType type) override; |
69 UserAgentType GetUserAgentType() 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 // NavigationItem. 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); |
80 NSString* GetSerializedStateObject() const; | 80 NSString* GetSerializedStateObject() const; |
81 | 81 |
82 // Whether or not this item was created by calling history.pushState(). | 82 // Whether or not this item was created by calling history.pushState(). |
83 void SetIsCreatedFromPushState(bool push_state); | 83 void SetIsCreatedFromPushState(bool push_state); |
84 bool IsCreatedFromPushState() const; | 84 bool IsCreatedFromPushState() const; |
85 | 85 |
86 // Whether the state for this navigation has been changed by | 86 // Whether the state for this navigation has been changed by |
87 // history.replaceState(). | 87 // history.replaceState(). |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 // Weak pointer to the facade delegate. | 169 // Weak pointer to the facade delegate. |
170 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; | 170 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; |
171 | 171 |
172 // Copy and assignment is explicitly allowed for this class. | 172 // Copy and assignment is explicitly allowed for this class. |
173 }; | 173 }; |
174 | 174 |
175 } // namespace web | 175 } // namespace web |
176 | 176 |
177 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ | 177 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ |
OLD | NEW |