OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 // Whether this (pending) navigation should clear the session history. Resets | 210 // Whether this (pending) navigation should clear the session history. Resets |
211 // to false after commit. | 211 // to false after commit. |
212 bool should_clear_history_list() const { | 212 bool should_clear_history_list() const { |
213 return should_clear_history_list_; | 213 return should_clear_history_list_; |
214 } | 214 } |
215 void set_should_clear_history_list(bool should_clear_history_list) { | 215 void set_should_clear_history_list(bool should_clear_history_list) { |
216 should_clear_history_list_ = should_clear_history_list; | 216 should_clear_history_list_ = should_clear_history_list; |
217 } | 217 } |
218 | 218 |
| 219 // Indicates which FrameTreeNode to navigate. Currently only used if the |
| 220 // --site-per-process flag is passed. |
| 221 int64 frame_tree_node_id() const { |
| 222 return frame_tree_node_id_; |
| 223 } |
| 224 void set_frame_tree_node_id(int64 frame_tree_node_id) { |
| 225 frame_tree_node_id_ = frame_tree_node_id; |
| 226 } |
| 227 |
219 private: | 228 private: |
220 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | 229 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
221 // Session/Tab restore save portions of this class so that it can be recreated | 230 // Session/Tab restore save portions of this class so that it can be recreated |
222 // later. If you add a new field that needs to be persisted you'll have to | 231 // later. If you add a new field that needs to be persisted you'll have to |
223 // update SessionService/TabRestoreService and Android WebView | 232 // update SessionService/TabRestoreService and Android WebView |
224 // state_serializer.cc appropriately. | 233 // state_serializer.cc appropriately. |
225 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | 234 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
226 | 235 |
227 // See the accessors above for descriptions. | 236 // See the accessors above for descriptions. |
228 int unique_id_; | 237 int unique_id_; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 bool should_clear_history_list_; | 325 bool should_clear_history_list_; |
317 | 326 |
318 // Set when this entry should be able to access local file:// resources. This | 327 // Set when this entry should be able to access local file:// resources. This |
319 // value is not needed after the entry commits and is not persisted. | 328 // value is not needed after the entry commits and is not persisted. |
320 bool can_load_local_resources_; | 329 bool can_load_local_resources_; |
321 | 330 |
322 // If not empty, the name of the frame to navigate. This field is not | 331 // If not empty, the name of the frame to navigate. This field is not |
323 // persisted, because it is currently only used in tests. | 332 // persisted, because it is currently only used in tests. |
324 std::string frame_to_navigate_; | 333 std::string frame_to_navigate_; |
325 | 334 |
| 335 // If not -1, this indicates which FrameTreeNode to navigate. This field is |
| 336 // not persisted because it is experimental and only used when the |
| 337 // --site-per-process flag is passed. It is cleared in |ResetForCommit| |
| 338 // because we only use it while the navigation is pending. |
| 339 // TODO(creis): Move this to FrameNavigationEntry. |
| 340 int64 frame_tree_node_id_; |
| 341 |
326 // Used to store extra data to support browser features. This member is not | 342 // Used to store extra data to support browser features. This member is not |
327 // persisted, unless specific data is taken out/put back in at save/restore | 343 // persisted, unless specific data is taken out/put back in at save/restore |
328 // time (see TabNavigation for an example of this). | 344 // time (see TabNavigation for an example of this). |
329 std::map<std::string, string16> extra_data_; | 345 std::map<std::string, string16> extra_data_; |
330 | 346 |
331 // Copy and assignment is explicitly allowed for this class. | 347 // Copy and assignment is explicitly allowed for this class. |
332 }; | 348 }; |
333 | 349 |
334 } // namespace content | 350 } // namespace content |
335 | 351 |
336 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 352 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |