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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 void NavigationEntryImpl::SetPostID(int64 post_id) { | 207 void NavigationEntryImpl::SetPostID(int64 post_id) { |
208 post_id_ = post_id; | 208 post_id_ = post_id; |
209 } | 209 } |
210 | 210 |
211 int64 NavigationEntryImpl::GetPostID() const { | 211 int64 NavigationEntryImpl::GetPostID() const { |
212 return post_id_; | 212 return post_id_; |
213 } | 213 } |
214 | 214 |
215 void NavigationEntryImpl::SetBrowserInitiatedPostData( | 215 void NavigationEntryImpl::SetBrowserInitiatedPostData( |
216 const base::RefCountedMemory* data) { | 216 scoped_refptr<webkit_glue::ResourceRequestBody> data) { |
217 browser_initiated_post_data_ = data; | 217 browser_initiated_post_data_ = data; |
218 } | 218 } |
219 | 219 |
220 const base::RefCountedMemory* | 220 const scoped_refptr<webkit_glue::ResourceRequestBody> |
221 NavigationEntryImpl::GetBrowserInitiatedPostData() const { | 221 NavigationEntryImpl::GetBrowserInitiatedPostData() const { |
222 return browser_initiated_post_data_.get(); | 222 return browser_initiated_post_data_; |
223 } | 223 } |
224 | 224 |
225 | |
226 const FaviconStatus& NavigationEntryImpl::GetFavicon() const { | 225 const FaviconStatus& NavigationEntryImpl::GetFavicon() const { |
227 return favicon_; | 226 return favicon_; |
228 } | 227 } |
229 | 228 |
230 FaviconStatus& NavigationEntryImpl::GetFavicon() { | 229 FaviconStatus& NavigationEntryImpl::GetFavicon() { |
231 return favicon_; | 230 return favicon_; |
232 } | 231 } |
233 | 232 |
234 const SSLStatus& NavigationEntryImpl::GetSSL() const { | 233 const SSLStatus& NavigationEntryImpl::GetSSL() const { |
235 return ssl_; | 234 return ssl_; |
(...skipping 29 matching lines...) Expand all Loading... |
265 | 264 |
266 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { | 265 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { |
267 can_load_local_resources_ = allow; | 266 can_load_local_resources_ = allow; |
268 } | 267 } |
269 | 268 |
270 bool NavigationEntryImpl::GetCanLoadLocalResources() const { | 269 bool NavigationEntryImpl::GetCanLoadLocalResources() const { |
271 return can_load_local_resources_; | 270 return can_load_local_resources_; |
272 } | 271 } |
273 | 272 |
274 } // namespace content | 273 } // namespace content |
OLD | NEW |