| 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_ != RestoreType::NONE; | 559 return restore_type_ != RestoreType::NONE; |
| 560 } | 560 } |
| 561 | 561 |
| 562 std::string NavigationEntryImpl::GetExtraHeaders() const { |
| 563 return extra_headers_; |
| 564 } |
| 565 |
| 566 void NavigationEntryImpl::AddExtraHeaders( |
| 567 const std::string& more_extra_headers) { |
| 568 DCHECK(!more_extra_headers.empty()); |
| 569 if (!extra_headers_.empty()) |
| 570 extra_headers_ += "\r\n"; |
| 571 extra_headers_ += more_extra_headers; |
| 572 } |
| 573 |
| 562 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { | 574 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { |
| 563 can_load_local_resources_ = allow; | 575 can_load_local_resources_ = allow; |
| 564 } | 576 } |
| 565 | 577 |
| 566 bool NavigationEntryImpl::GetCanLoadLocalResources() const { | 578 bool NavigationEntryImpl::GetCanLoadLocalResources() const { |
| 567 return can_load_local_resources_; | 579 return can_load_local_resources_; |
| 568 } | 580 } |
| 569 | 581 |
| 570 void NavigationEntryImpl::SetExtraData(const std::string& key, | 582 void NavigationEntryImpl::SetExtraData(const std::string& key, |
| 571 const base::string16& data) { | 583 const base::string16& data) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 return node; | 918 return node; |
| 907 | 919 |
| 908 // Enqueue any children and keep looking. | 920 // Enqueue any children and keep looking. |
| 909 for (auto* child : node->children) | 921 for (auto* child : node->children) |
| 910 work_queue.push(child); | 922 work_queue.push(child); |
| 911 } | 923 } |
| 912 return nullptr; | 924 return nullptr; |
| 913 } | 925 } |
| 914 | 926 |
| 915 } // namespace content | 927 } // namespace content |
| OLD | NEW |