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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 void NavigationEntryImpl::SetTitle(const string16& title) { | 122 void NavigationEntryImpl::SetTitle(const string16& title) { |
123 title_ = title; | 123 title_ = title; |
124 cached_display_title_.clear(); | 124 cached_display_title_.clear(); |
125 } | 125 } |
126 | 126 |
127 const string16& NavigationEntryImpl::GetTitle() const { | 127 const string16& NavigationEntryImpl::GetTitle() const { |
128 return title_; | 128 return title_; |
129 } | 129 } |
130 | 130 |
| 131 void NavigationEntryImpl::SetSearchTerms(const string16& search_terms) { |
| 132 search_terms_ = search_terms; |
| 133 } |
| 134 |
| 135 const string16& NavigationEntryImpl::GetSearchTerms() const { |
| 136 return search_terms_; |
| 137 } |
| 138 |
131 void NavigationEntryImpl::SetContentState(const std::string& state) { | 139 void NavigationEntryImpl::SetContentState(const std::string& state) { |
132 content_state_ = state; | 140 content_state_ = state; |
133 } | 141 } |
134 | 142 |
135 const std::string& NavigationEntryImpl::GetContentState() const { | 143 const std::string& NavigationEntryImpl::GetContentState() const { |
136 return content_state_; | 144 return content_state_; |
137 } | 145 } |
138 | 146 |
139 void NavigationEntryImpl::SetPageID(int page_id) { | 147 void NavigationEntryImpl::SetPageID(int page_id) { |
140 page_id_ = page_id; | 148 page_id_ = page_id; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 273 |
266 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { | 274 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { |
267 can_load_local_resources_ = allow; | 275 can_load_local_resources_ = allow; |
268 } | 276 } |
269 | 277 |
270 bool NavigationEntryImpl::GetCanLoadLocalResources() const { | 278 bool NavigationEntryImpl::GetCanLoadLocalResources() const { |
271 return can_load_local_resources_; | 279 return can_load_local_resources_; |
272 } | 280 } |
273 | 281 |
274 } // namespace content | 282 } // namespace content |
OLD | NEW |