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

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

Issue 12052023: Add "frame to navigate" to NavigationEntry and plumb it to the RenderViewImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing 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/sessions/session_types.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 f69cec9a2a879f6ec1c79fb84e314ca62369776e..c65bdb32b75a9d9dea2f212e344bb4000ae06810 100644
--- a/content/browser/web_contents/navigation_entry_impl.h
+++ b/content/browser/web_contents/navigation_entry_impl.h
@@ -73,6 +73,8 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual base::Time GetTimestamp() const OVERRIDE;
virtual void SetCanLoadLocalResources(bool allow) OVERRIDE;
virtual bool GetCanLoadLocalResources() const OVERRIDE;
+ virtual void SetFrameToNavigate(const std::string& frame_name) OVERRIDE;
+ virtual const std::string& GetFrameToNavigate() const OVERRIDE;
void set_unique_id(int unique_id) {
unique_id_ = unique_id;
@@ -259,6 +261,10 @@ class CONTENT_EXPORT NavigationEntryImpl
// value is not needed after the entry commits and is not persisted.
bool can_load_local_resources_;
+ // If not empty, the name of the frame to navigate. This field is not
+ // persisted, because it is currently only used in tests.
+ std::string frame_to_navigate_;
+
// Copy and assignment is explicitly allowed for this class.
};
« no previous file with comments | « chrome/browser/sessions/session_types.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