OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/web_contents/navigation_entry_impl.h" | 5 #include "content/browser/web_contents/navigation_entry_impl.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "content/public/common/content_constants.h" | 9 #include "content/public/common/content_constants.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 void NavigationEntryImpl::SetURL(const GURL& url) { | 88 void NavigationEntryImpl::SetURL(const GURL& url) { |
89 url_ = url; | 89 url_ = url; |
90 cached_display_title_.clear(); | 90 cached_display_title_.clear(); |
91 } | 91 } |
92 | 92 |
93 const GURL& NavigationEntryImpl::GetURL() const { | 93 const GURL& NavigationEntryImpl::GetURL() const { |
94 return url_; | 94 return url_; |
95 } | 95 } |
96 | 96 |
| 97 void NavigationEntryImpl::SetBaseURLForDataURL(const GURL& url) { |
| 98 base_url_for_data_url_ = url; |
| 99 } |
| 100 |
| 101 const GURL& NavigationEntryImpl::GetBaseURLForDataURL() const { |
| 102 return base_url_for_data_url_; |
| 103 } |
| 104 |
97 void NavigationEntryImpl::SetReferrer(const Referrer& referrer) { | 105 void NavigationEntryImpl::SetReferrer(const Referrer& referrer) { |
98 referrer_ = referrer; | 106 referrer_ = referrer; |
99 } | 107 } |
100 | 108 |
101 const Referrer& NavigationEntryImpl::GetReferrer() const { | 109 const Referrer& NavigationEntryImpl::GetReferrer() const { |
102 return referrer_; | 110 return referrer_; |
103 } | 111 } |
104 | 112 |
105 void NavigationEntryImpl::SetVirtualURL(const GURL& url) { | 113 void NavigationEntryImpl::SetVirtualURL(const GURL& url) { |
106 virtual_url_ = (url == url_) ? GURL() : url; | 114 virtual_url_ = (url == url_) ? GURL() : url; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 238 |
231 void NavigationEntryImpl::SetIsOverridingUserAgent(bool override) { | 239 void NavigationEntryImpl::SetIsOverridingUserAgent(bool override) { |
232 is_overriding_user_agent_ = override; | 240 is_overriding_user_agent_ = override; |
233 } | 241 } |
234 | 242 |
235 bool NavigationEntryImpl::GetIsOverridingUserAgent() const { | 243 bool NavigationEntryImpl::GetIsOverridingUserAgent() const { |
236 return is_overriding_user_agent_; | 244 return is_overriding_user_agent_; |
237 } | 245 } |
238 | 246 |
239 } // namespace content | 247 } // namespace content |
OLD | NEW |