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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 } | 237 } |
238 | 238 |
239 void NavigationEntryImpl::SetIsOverridingUserAgent(bool override) { | 239 void NavigationEntryImpl::SetIsOverridingUserAgent(bool override) { |
240 is_overriding_user_agent_ = override; | 240 is_overriding_user_agent_ = override; |
241 } | 241 } |
242 | 242 |
243 bool NavigationEntryImpl::GetIsOverridingUserAgent() const { | 243 bool NavigationEntryImpl::GetIsOverridingUserAgent() const { |
244 return is_overriding_user_agent_; | 244 return is_overriding_user_agent_; |
245 } | 245 } |
246 | 246 |
| 247 void NavigationEntryImpl::SetBrowserInitiatedPostData(const std::string& data) { |
| 248 browser_initiated_post_data_ = data; |
| 249 } |
| 250 |
| 251 const std::string& NavigationEntryImpl::GetBrowserInitiatedPostData() const { |
| 252 return browser_initiated_post_data_; |
| 253 } |
| 254 |
247 } // namespace content | 255 } // namespace content |
OLD | NEW |