| 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 #include "content/browser/frame_host/navigation_entry_impl.h" | 5 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 } | 552 } |
| 553 | 553 |
| 554 const std::vector<GURL>& NavigationEntryImpl::GetRedirectChain() const { | 554 const std::vector<GURL>& NavigationEntryImpl::GetRedirectChain() const { |
| 555 return redirect_chain_; | 555 return redirect_chain_; |
| 556 } | 556 } |
| 557 | 557 |
| 558 bool NavigationEntryImpl::IsRestored() const { | 558 bool NavigationEntryImpl::IsRestored() const { |
| 559 return restore_type_ != RESTORE_NONE; | 559 return restore_type_ != RESTORE_NONE; |
| 560 } | 560 } |
| 561 | 561 |
| 562 std::string NavigationEntryImpl::GetExtraHeaders() const { |
| 563 return extra_headers_; |
| 564 } |
| 565 |
| 562 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { | 566 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { |
| 563 can_load_local_resources_ = allow; | 567 can_load_local_resources_ = allow; |
| 564 } | 568 } |
| 565 | 569 |
| 566 bool NavigationEntryImpl::GetCanLoadLocalResources() const { | 570 bool NavigationEntryImpl::GetCanLoadLocalResources() const { |
| 567 return can_load_local_resources_; | 571 return can_load_local_resources_; |
| 568 } | 572 } |
| 569 | 573 |
| 570 void NavigationEntryImpl::SetExtraData(const std::string& key, | 574 void NavigationEntryImpl::SetExtraData(const std::string& key, |
| 571 const base::string16& data) { | 575 const base::string16& data) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 return node; | 910 return node; |
| 907 | 911 |
| 908 // Enqueue any children and keep looking. | 912 // Enqueue any children and keep looking. |
| 909 for (auto* child : node->children) | 913 for (auto* child : node->children) |
| 910 work_queue.push(child); | 914 work_queue.push(child); |
| 911 } | 915 } |
| 912 return nullptr; | 916 return nullptr; |
| 913 } | 917 } |
| 914 | 918 |
| 915 } // namespace content | 919 } // namespace content |
| OLD | NEW |