| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/browser/frame_host/frame_navigation_entry.h" | 15 #include "content/browser/frame_host/frame_navigation_entry.h" |
| 16 #include "content/browser/frame_host/frame_tree_node.h" | 16 #include "content/browser/frame_host/frame_tree_node.h" |
| 17 #include "content/browser/site_instance_impl.h" | 17 #include "content/browser/site_instance_impl.h" |
| 18 #include "content/common/frame_message_enums.h" | 18 #include "content/common/frame_message_enums.h" |
| 19 #include "content/common/resource_request_body_impl.h" | 19 #include "content/common/resource_request_body_impl.h" |
| 20 #include "content/public/browser/favicon_status.h" | 20 #include "content/public/browser/favicon_status.h" |
| 21 #include "content/public/browser/global_request_id.h" | 21 #include "content/public/browser/global_request_id.h" |
| 22 #include "content/public/browser/navigation_entry.h" | 22 #include "content/public/browser/navigation_entry.h" |
| 23 #include "content/public/browser/navigation_types.h" |
| 23 #include "content/public/common/page_state.h" | 24 #include "content/public/common/page_state.h" |
| 24 #include "content/public/common/ssl_status.h" | 25 #include "content/public/common/ssl_status.h" |
| 25 | 26 |
| 26 namespace content { | 27 namespace content { |
| 27 class ResourceRequestBodyImpl; | 28 class ResourceRequestBodyImpl; |
| 28 struct CommonNavigationParams; | 29 struct CommonNavigationParams; |
| 29 struct RequestNavigationParams; | 30 struct RequestNavigationParams; |
| 30 struct StartNavigationParams; | 31 struct StartNavigationParams; |
| 31 | 32 |
| 32 class CONTENT_EXPORT NavigationEntryImpl | 33 class CONTENT_EXPORT NavigationEntryImpl |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 is_renderer_initiated_ = is_renderer_initiated; | 300 is_renderer_initiated_ = is_renderer_initiated; |
| 300 } | 301 } |
| 301 bool is_renderer_initiated() const { | 302 bool is_renderer_initiated() const { |
| 302 return is_renderer_initiated_; | 303 return is_renderer_initiated_; |
| 303 } | 304 } |
| 304 | 305 |
| 305 void set_user_typed_url(const GURL& user_typed_url) { | 306 void set_user_typed_url(const GURL& user_typed_url) { |
| 306 user_typed_url_ = user_typed_url; | 307 user_typed_url_ = user_typed_url; |
| 307 } | 308 } |
| 308 | 309 |
| 309 // Enumerations of the possible restore types. | |
| 310 enum RestoreType { | |
| 311 // Restore from the previous session. | |
| 312 RESTORE_LAST_SESSION_EXITED_CLEANLY, | |
| 313 RESTORE_LAST_SESSION_CRASHED, | |
| 314 | |
| 315 // The entry has been restored from the current session. This is used when | |
| 316 // the user issues 'reopen closed tab'. | |
| 317 RESTORE_CURRENT_SESSION, | |
| 318 | |
| 319 // The entry was not restored. | |
| 320 RESTORE_NONE | |
| 321 }; | |
| 322 | |
| 323 // The RestoreType for this entry. This is set if the entry was retored. This | 310 // The RestoreType for this entry. This is set if the entry was retored. This |
| 324 // is set to RESTORE_NONE once the entry is loaded. | 311 // is set to RESTORE_NONE once the entry is loaded. |
| 325 void set_restore_type(RestoreType type) { | 312 void set_restore_type(RestoreType type) { |
| 326 restore_type_ = type; | 313 restore_type_ = type; |
| 327 } | 314 } |
| 328 RestoreType restore_type() const { | 315 RestoreType restore_type() const { |
| 329 return restore_type_; | 316 return restore_type_; |
| 330 } | 317 } |
| 331 | 318 |
| 332 void set_transferred_global_request_id( | 319 void set_transferred_global_request_id( |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 // persisted, unless specific data is taken out/put back in at save/restore | 514 // persisted, unless specific data is taken out/put back in at save/restore |
| 528 // time (see TabNavigation for an example of this). | 515 // time (see TabNavigation for an example of this). |
| 529 std::map<std::string, base::string16> extra_data_; | 516 std::map<std::string, base::string16> extra_data_; |
| 530 | 517 |
| 531 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 518 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
| 532 }; | 519 }; |
| 533 | 520 |
| 534 } // namespace content | 521 } // namespace content |
| 535 | 522 |
| 536 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 523 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
| OLD | NEW |