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

Unified Diff: content/public/browser/navigation_entry.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 | « content/browser/web_contents/navigation_entry_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_entry.h
diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
index cc25a254cf08c2904dc5aa10e5b09122a70f481f..e675d2f01aa2ee83566c673a83db496ecad323f5 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -188,6 +188,14 @@ class NavigationEntry {
// is currently only used in tests.
virtual void SetFrameToNavigate(const std::string& frame_name) = 0;
virtual const std::string& GetFrameToNavigate() const = 0;
+
+ // Set extra data on this NavigationEntry according to the specified |key|.
+ // This data is not persisted by default.
+ virtual void SetExtraData(const std::string& key, const string16& data) = 0;
+ // If present, fills the |data| present at the specified |key|.
+ virtual bool GetExtraData(const std::string& key, string16* data) const = 0;
+ // Removes the data at the specified |key|.
+ virtual void ClearExtraData(const std::string& key) = 0;
};
} // namespace content
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698