Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 1814993002: Handle about:blank in the Origin Info Bubble better. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No GetOpener at all. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698