Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: content/browser/web_contents/navigation_entry_impl.cc

Issue 11876045: [Search] Store and recall search terms using NavigationEntry to improve search term extraction (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Indentation Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/navigation_entry_impl.cc
diff --git a/content/browser/web_contents/navigation_entry_impl.cc b/content/browser/web_contents/navigation_entry_impl.cc
index 61836db1e4325317a3a4cb308cfaa4831c8ded9e..49db1385c629036c325ef236717239ab6ca46405 100644
--- a/content/browser/web_contents/navigation_entry_impl.cc
+++ b/content/browser/web_contents/navigation_entry_impl.cc
@@ -271,6 +271,21 @@ bool NavigationEntryImpl::GetCanLoadLocalResources() const {
return can_load_local_resources_;
}
+void NavigationEntryImpl::SetExtraData(const std::string key,
+ const string16& data) {
+ extra_data_[key] = data;
+};
sky 2013/01/16 22:32:37 no ; here and 287
Mathieu 2013/01/17 15:59:29 Done.
+
+const bool NavigationEntryImpl::GetExtraData(const std::string key,
+ string16* out_value) const {
+ ExtraDataMap::const_iterator iter = extra_data_.find(key);
+ if (iter == extra_data_.end()) {
sky 2013/01/16 22:32:37 no {}
Mathieu 2013/01/17 15:59:29 Done.
+ return false;
+ }
+ *out_value = iter->second;
+ return true;
+};
+
void NavigationEntryImpl::SetScreenshotPNGData(
const std::vector<unsigned char>& png_data) {
screenshot_ = png_data.empty() ? NULL : new base::RefCountedBytes(png_data);

Powered by Google App Engine
This is Rietveld 408576698