| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 void NavigationEntryImpl::SetURL(const GURL& url) { | 209 void NavigationEntryImpl::SetURL(const GURL& url) { |
| 210 frame_tree_->frame_entry->set_url(url); | 210 frame_tree_->frame_entry->set_url(url); |
| 211 cached_display_title_.clear(); | 211 cached_display_title_.clear(); |
| 212 } | 212 } |
| 213 | 213 |
| 214 const GURL& NavigationEntryImpl::GetURL() const { | 214 const GURL& NavigationEntryImpl::GetURL() const { |
| 215 return frame_tree_->frame_entry->url(); | 215 return frame_tree_->frame_entry->url(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 void NavigationEntryImpl::SetOrigin(const url::Origin& origin) { |
| 219 origin_ = origin; |
| 220 } |
| 221 |
| 222 const url::Origin& NavigationEntryImpl::GetOrigin() const { |
| 223 return origin_; |
| 224 } |
| 225 |
| 218 void NavigationEntryImpl::SetBaseURLForDataURL(const GURL& url) { | 226 void NavigationEntryImpl::SetBaseURLForDataURL(const GURL& url) { |
| 219 base_url_for_data_url_ = url; | 227 base_url_for_data_url_ = url; |
| 220 } | 228 } |
| 221 | 229 |
| 222 const GURL& NavigationEntryImpl::GetBaseURLForDataURL() const { | 230 const GURL& NavigationEntryImpl::GetBaseURLForDataURL() const { |
| 223 return base_url_for_data_url_; | 231 return base_url_for_data_url_; |
| 224 } | 232 } |
| 225 | 233 |
| 226 #if defined(OS_ANDROID) | 234 #if defined(OS_ANDROID) |
| 227 void NavigationEntryImpl::SetDataURLAsString( | 235 void NavigationEntryImpl::SetDataURLAsString( |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 return node; | 786 return node; |
| 779 } | 787 } |
| 780 // Enqueue any children and keep looking. | 788 // Enqueue any children and keep looking. |
| 781 for (auto& child : node->children) | 789 for (auto& child : node->children) |
| 782 work_queue.push(child); | 790 work_queue.push(child); |
| 783 } | 791 } |
| 784 return nullptr; | 792 return nullptr; |
| 785 } | 793 } |
| 786 | 794 |
| 787 } // namespace content | 795 } // namespace content |
| OLD | NEW |