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