Chromium Code Reviews| 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 <map> | |
| 11 | |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 13 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 14 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 15 #include "content/browser/frame_host/frame_navigation_entry.h" | 17 #include "content/browser/frame_host/frame_navigation_entry.h" |
| 16 #include "content/browser/frame_host/frame_tree_node.h" | 18 #include "content/browser/frame_host/frame_tree_node.h" |
| 17 #include "content/browser/site_instance_impl.h" | 19 #include "content/browser/site_instance_impl.h" |
| 18 #include "content/common/frame_message_enums.h" | 20 #include "content/common/frame_message_enums.h" |
| 19 #include "content/common/resource_request_body_impl.h" | 21 #include "content/common/resource_request_body_impl.h" |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 349 int frame_tree_node_id() const { | 351 int frame_tree_node_id() const { |
| 350 return frame_tree_node_id_; | 352 return frame_tree_node_id_; |
| 351 } | 353 } |
| 352 void set_frame_tree_node_id(int frame_tree_node_id) { | 354 void set_frame_tree_node_id(int frame_tree_node_id) { |
| 353 frame_tree_node_id_ = frame_tree_node_id; | 355 frame_tree_node_id_ = frame_tree_node_id; |
| 354 } | 356 } |
| 355 | 357 |
| 356 // Returns the history URL for a data URL to use in Blink. | 358 // Returns the history URL for a data URL to use in Blink. |
| 357 GURL GetHistoryURLForDataURL() const; | 359 GURL GetHistoryURLForDataURL() const; |
| 358 | 360 |
| 361 const std::map<std::string, base::string16>& get_extra_data() const { | |
| 362 return extra_data_; | |
|
Ted C
2016/09/19 16:00:43
Sorry for my delay, but I have a couple general qu
Michael van Ouwerkerk
2016/09/19 16:42:02
SetExtraData is used from only a few places curren
Ted C
2016/09/19 19:59:08
Cool...thanks for looking into this and describing
| |
| 363 } | |
| 364 | |
| 359 #if defined(OS_ANDROID) | 365 #if defined(OS_ANDROID) |
| 360 base::TimeTicks intent_received_timestamp() const { | 366 base::TimeTicks intent_received_timestamp() const { |
| 361 return intent_received_timestamp_; | 367 return intent_received_timestamp_; |
| 362 } | 368 } |
| 363 | 369 |
| 364 void set_intent_received_timestamp( | 370 void set_intent_received_timestamp( |
| 365 const base::TimeTicks intent_received_timestamp) { | 371 const base::TimeTicks intent_received_timestamp) { |
| 366 intent_received_timestamp_ = intent_received_timestamp; | 372 intent_received_timestamp_ = intent_received_timestamp; |
| 367 } | 373 } |
| 368 | 374 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 509 // persisted, unless specific data is taken out/put back in at save/restore | 515 // persisted, unless specific data is taken out/put back in at save/restore |
| 510 // time (see TabNavigation for an example of this). | 516 // time (see TabNavigation for an example of this). |
| 511 std::map<std::string, base::string16> extra_data_; | 517 std::map<std::string, base::string16> extra_data_; |
| 512 | 518 |
| 513 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 519 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
| 514 }; | 520 }; |
| 515 | 521 |
| 516 } // namespace content | 522 } // namespace content |
| 517 | 523 |
| 518 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 524 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
| OLD | NEW |