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

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

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: reupload 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
« no previous file with comments | « chrome/browser/ui/search/search.cc ('k') | content/browser/web_contents/navigation_entry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/navigation_entry_impl.h
diff --git a/content/browser/web_contents/navigation_entry_impl.h b/content/browser/web_contents/navigation_entry_impl.h
index c65bdb32b75a9d9dea2f212e344bb4000ae06810..c23e2f0403496ee08977879c12d60683f4aff0c7 100644
--- a/content/browser/web_contents/navigation_entry_impl.h
+++ b/content/browser/web_contents/navigation_entry_impl.h
@@ -75,6 +75,11 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual bool GetCanLoadLocalResources() const OVERRIDE;
virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE;
virtual const std::string& GetFrameToNavigate() const OVERRIDE;
+ virtual void SetExtraData(const std::string& key,
+ const string16& data) OVERRIDE;
+ virtual bool GetExtraData(const std::string& key,
+ string16* data) const OVERRIDE;
+ virtual void ClearExtraData(const std::string& key) OVERRIDE;
void set_unique_id(int unique_id) {
unique_id_ = unique_id;
@@ -265,6 +270,11 @@ class CONTENT_EXPORT NavigationEntryImpl
// persisted, because it is currently only used in tests.
std::string frame_to_navigate_;
+ // Used to store extra data to support browser features. This member is not
+ // persisted, unless specific data is taken out/put back in at save/restore
+ // time (see TabNavigation for an example of this).
+ std::map<std::string, string16> extra_data_;
+
// Copy and assignment is explicitly allowed for this class.
};
« no previous file with comments | « chrome/browser/ui/search/search.cc ('k') | content/browser/web_contents/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698