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

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: addressed comments 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..8d26a83b9ef67309fddf2b2fd09c92055c877514 100644
--- a/content/browser/web_contents/navigation_entry_impl.cc
+++ b/content/browser/web_contents/navigation_entry_impl.cc
@@ -271,6 +271,20 @@ bool NavigationEntryImpl::GetCanLoadLocalResources() const {
return can_load_local_resources_;
}
+void NavigationEntryImpl::SetExtraData(const std::string& key,
+ const string16& data) {
+ extra_data_[key] = data;
+}
+
+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())
+ 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