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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 const SSLStatus& GetSSL() const override; | 60 const SSLStatus& GetSSL() const override; |
61 SSLStatus& GetSSL() override; | 61 SSLStatus& GetSSL() override; |
62 void SetTimestamp(base::Time timestamp) override; | 62 void SetTimestamp(base::Time timestamp) override; |
63 base::Time GetTimestamp() const override; | 63 base::Time GetTimestamp() const override; |
64 void SetIsOverridingUserAgent(bool is_overriding_user_agent) override; | 64 void SetIsOverridingUserAgent(bool is_overriding_user_agent) override; |
65 bool IsOverridingUserAgent() const override; | 65 bool IsOverridingUserAgent() const override; |
66 bool HasPostData() const override; | 66 bool HasPostData() const override; |
67 NSDictionary* GetHttpRequestHeaders() const override; | 67 NSDictionary* GetHttpRequestHeaders() const override; |
68 void AddHttpRequestHeaders(NSDictionary* additional_headers) override; | 68 void AddHttpRequestHeaders(NSDictionary* additional_headers) override; |
69 | 69 |
70 | |
71 NSDictionary* GetExtraData() const override; | |
72 | |
73 base::scoped_nsobject<NSDictionary> extra_data_; | |
sdefresne
2016/10/04 13:26:46
style: ivar should go after all methods, and shoul
| |
74 | |
75 | |
sdefresne
2016/10/04 13:26:46
Remove blank line.
| |
70 // Serialized representation of the state object that was used in conjunction | 76 // Serialized representation of the state object that was used in conjunction |
71 // with a JavaScript window.history.pushState() or | 77 // with a JavaScript window.history.pushState() or |
72 // window.history.replaceState() call that created or modified this | 78 // window.history.replaceState() call that created or modified this |
73 // CRWSessionEntry. Intended to be used for JavaScript history operations and | 79 // CRWSessionEntry. Intended to be used for JavaScript history operations and |
74 // will be nil in most cases. | 80 // will be nil in most cases. |
75 void SetSerializedStateObject(NSString* serialized_state_object); | 81 void SetSerializedStateObject(NSString* serialized_state_object); |
76 NSString* GetSerializedStateObject() const; | 82 NSString* GetSerializedStateObject() const; |
77 | 83 |
78 // Whether or not this item was created by calling history.pushState(). | 84 // Whether or not this item was created by calling history.pushState(). |
79 void SetIsCreatedFromPushState(bool push_state); | 85 void SetIsCreatedFromPushState(bool push_state); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 // Whether the navigation contains unsafe resources. | 138 // Whether the navigation contains unsafe resources. |
133 bool is_unsafe_; | 139 bool is_unsafe_; |
134 | 140 |
135 // This is a cached version of the result of GetTitleForDisplay. When the URL, | 141 // This is a cached version of the result of GetTitleForDisplay. When the URL, |
136 // virtual URL, or title is set, this should be cleared to force a refresh. | 142 // virtual URL, or title is set, this should be cleared to force a refresh. |
137 mutable base::string16 cached_display_title_; | 143 mutable base::string16 cached_display_title_; |
138 | 144 |
139 // Weak pointer to the facade delegate. | 145 // Weak pointer to the facade delegate. |
140 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; | 146 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; |
141 | 147 |
148 | |
sdefresne
2016/10/04 13:26:46
Remove blank line.
| |
142 // Copy and assignment is explicitly allowed for this class. | 149 // Copy and assignment is explicitly allowed for this class. |
143 }; | 150 }; |
144 | 151 |
145 } // namespace web | 152 } // namespace web |
146 | 153 |
147 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ | 154 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ |
OLD | NEW |