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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 // non-persisted state, as documented on the members below. | 113 // non-persisted state, as documented on the members below. |
114 void ResetForCommit(); | 114 void ResetForCommit(); |
115 | 115 |
116 // Whether this (pending) navigation is renderer-initiated. Resets to false | 116 // Whether this (pending) navigation is renderer-initiated. Resets to false |
117 // for all types of navigations after commit. | 117 // for all types of navigations after commit. |
118 void set_is_renderer_initiated(bool is_renderer_initiated) { | 118 void set_is_renderer_initiated(bool is_renderer_initiated) { |
119 is_renderer_initiated_ = is_renderer_initiated; | 119 is_renderer_initiated_ = is_renderer_initiated; |
120 } | 120 } |
121 bool is_renderer_initiated() const { return is_renderer_initiated_; } | 121 bool is_renderer_initiated() const { return is_renderer_initiated_; } |
122 | 122 |
123 // Returns a human-readable description of the state for debugging purposes. | |
Eugene But (OOO till 7-30)
2017/02/18 01:25:59
Should this be ifdefed for debug only code?
kkhorimoto
2017/03/02 01:55:55
Done.
| |
124 NSString* GetDescription() const; | |
125 | |
123 private: | 126 private: |
124 // The NavigationManItemStorageBuilder functions require access to | 127 // The NavigationManItemStorageBuilder functions require access to |
125 // private variables of NavigationItemImpl. | 128 // private variables of NavigationItemImpl. |
126 friend NavigationItemStorageBuilder; | 129 friend NavigationItemStorageBuilder; |
127 | 130 |
128 int unique_id_; | 131 int unique_id_; |
129 GURL original_request_url_; | 132 GURL original_request_url_; |
130 GURL url_; | 133 GURL url_; |
131 Referrer referrer_; | 134 Referrer referrer_; |
132 GURL virtual_url_; | 135 GURL virtual_url_; |
(...skipping 27 matching lines...) Expand all Loading... | |
160 | 163 |
161 // Weak pointer to the facade delegate. | 164 // Weak pointer to the facade delegate. |
162 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; | 165 std::unique_ptr<NavigationItemFacadeDelegate> facade_delegate_; |
163 | 166 |
164 // Copy and assignment is explicitly allowed for this class. | 167 // Copy and assignment is explicitly allowed for this class. |
165 }; | 168 }; |
166 | 169 |
167 } // namespace web | 170 } // namespace web |
168 | 171 |
169 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ | 172 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_H_ |
OLD | NEW |