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/reload_type.h" | |
23 #include "content/public/browser/restore_type.h" | 24 #include "content/public/browser/restore_type.h" |
24 #include "content/public/browser/ssl_status.h" | 25 #include "content/public/browser/ssl_status.h" |
25 #include "content/public/common/page_state.h" | 26 #include "content/public/common/page_state.h" |
26 | 27 |
27 namespace content { | 28 namespace content { |
28 class ResourceRequestBodyImpl; | 29 class ResourceRequestBodyImpl; |
29 struct CommonNavigationParams; | 30 struct CommonNavigationParams; |
30 struct RequestNavigationParams; | 31 struct RequestNavigationParams; |
31 struct StartNavigationParams; | 32 struct StartNavigationParams; |
32 | 33 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
296 } | 297 } |
297 bool is_renderer_initiated() const { | 298 bool is_renderer_initiated() const { |
298 return is_renderer_initiated_; | 299 return is_renderer_initiated_; |
299 } | 300 } |
300 | 301 |
301 void set_user_typed_url(const GURL& user_typed_url) { | 302 void set_user_typed_url(const GURL& user_typed_url) { |
302 user_typed_url_ = user_typed_url; | 303 user_typed_url_ = user_typed_url; |
303 } | 304 } |
304 | 305 |
305 // The RestoreType for this entry. This is set if the entry was retored. This | 306 // The RestoreType for this entry. This is set if the entry was retored. This |
306 // is set to RESTORE_NONE once the entry is loaded. | 307 // is set to RestoreType::NONE once the entry is loaded. |
307 void set_restore_type(RestoreType type) { | 308 void set_restore_type(RestoreType type) { |
308 restore_type_ = type; | 309 restore_type_ = type; |
309 } | 310 } |
310 RestoreType restore_type() const { | 311 RestoreType restore_type() const { |
311 return restore_type_; | 312 return restore_type_; |
312 } | 313 } |
313 | 314 |
315 void set_reload_type(ReloadType type) { | |
Charlie Reis
2016/09/19 22:23:52
Please document these.
Takashi Toyoshima
2016/09/26 12:23:34
Done.
| |
316 reload_type_ = type; | |
317 } | |
318 ReloadType reload_type() const { return reload_type_; } | |
319 | |
314 void set_transferred_global_request_id( | 320 void set_transferred_global_request_id( |
315 const GlobalRequestID& transferred_global_request_id) { | 321 const GlobalRequestID& transferred_global_request_id) { |
316 transferred_global_request_id_ = transferred_global_request_id; | 322 transferred_global_request_id_ = transferred_global_request_id; |
317 } | 323 } |
318 | 324 |
319 GlobalRequestID transferred_global_request_id() const { | 325 GlobalRequestID transferred_global_request_id() const { |
320 return transferred_global_request_id_; | 326 return transferred_global_request_id_; |
321 } | 327 } |
322 | 328 |
323 // Whether this (pending) navigation needs to replace current entry. | 329 // Whether this (pending) navigation needs to replace current entry. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
498 | 504 |
499 #if defined(OS_ANDROID) | 505 #if defined(OS_ANDROID) |
500 // The time at which Chrome received the Android Intent that triggered this | 506 // The time at which Chrome received the Android Intent that triggered this |
501 // URL load operation. Reset at commit and not persisted. | 507 // URL load operation. Reset at commit and not persisted. |
502 base::TimeTicks intent_received_timestamp_; | 508 base::TimeTicks intent_received_timestamp_; |
503 | 509 |
504 // Whether the URL load carries a user gesture. | 510 // Whether the URL load carries a user gesture. |
505 bool has_user_gesture_; | 511 bool has_user_gesture_; |
506 #endif | 512 #endif |
507 | 513 |
514 // Set when a reload is requested to check navigation type at commit time. | |
Charlie Reis
2016/09/19 22:23:52
Please mention that this is ReloadType::NONE for a
Takashi Toyoshima
2016/09/26 12:23:34
Done.
| |
515 ReloadType reload_type_; | |
516 | |
508 // Used to store extra data to support browser features. This member is not | 517 // Used to store extra data to support browser features. This member is not |
509 // persisted, unless specific data is taken out/put back in at save/restore | 518 // persisted, unless specific data is taken out/put back in at save/restore |
510 // time (see TabNavigation for an example of this). | 519 // time (see TabNavigation for an example of this). |
511 std::map<std::string, base::string16> extra_data_; | 520 std::map<std::string, base::string16> extra_data_; |
512 | 521 |
513 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 522 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
514 }; | 523 }; |
515 | 524 |
516 } // namespace content | 525 } // namespace content |
517 | 526 |
518 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 527 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |