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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 } | 219 } |
220 | 220 |
221 void NavigationEntryImpl::SetOriginalRequestURL(const GURL& original_url) { | 221 void NavigationEntryImpl::SetOriginalRequestURL(const GURL& original_url) { |
222 original_request_url_ = original_url; | 222 original_request_url_ = original_url; |
223 } | 223 } |
224 | 224 |
225 const GURL& NavigationEntryImpl::GetOriginalRequestURL() const { | 225 const GURL& NavigationEntryImpl::GetOriginalRequestURL() const { |
226 return original_request_url_; | 226 return original_request_url_; |
227 } | 227 } |
228 | 228 |
| 229 void NavigationEntryImpl::SetOverrideUserAgent(bool override) { |
| 230 override_user_agent_ = override; |
| 231 } |
| 232 |
| 233 bool NavigationEntryImpl::GetOverrideUserAgent() const { |
| 234 return override_user_agent_; |
| 235 } |
| 236 |
229 } // namespace content | 237 } // namespace content |
OLD | NEW |