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

Unified Diff: content/browser/frame_host/frame_navigation_entry.h

Issue 1156733003: Move PageState to FrameNavigationEntry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | content/browser/frame_host/frame_navigation_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_navigation_entry.h
diff --git a/content/browser/frame_host/frame_navigation_entry.h b/content/browser/frame_host/frame_navigation_entry.h
index 15d224ca1887917540d9e2c71f2b60ba00b7fb22..6fbd7541730e60ad6fba17ee69c0f7c7e1e869f6 100644
--- a/content/browser/frame_host/frame_navigation_entry.h
+++ b/content/browser/frame_host/frame_navigation_entry.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "content/browser/site_instance_impl.h"
+#include "content/public/common/page_state.h"
#include "content/public/common/referrer.h"
namespace content {
@@ -41,7 +42,8 @@ class CONTENT_EXPORT FrameNavigationEntry
// Updates all the members of this entry.
void UpdateEntry(SiteInstanceImpl* site_instance,
const GURL& url,
- const Referrer& referrer);
+ const Referrer& referrer,
+ const PageState& page_state);
// The ID of the FrameTreeNode this entry is for. -1 for the main frame,
// since we don't always know the FrameTreeNode ID when creating the overall
@@ -67,6 +69,9 @@ class CONTENT_EXPORT FrameNavigationEntry
void set_referrer(const Referrer& referrer) { referrer_ = referrer; }
const Referrer& referrer() const { return referrer_; }
+ void set_page_state(const PageState& page_state) { page_state_ = page_state; }
+ const PageState& page_state() const { return page_state_; }
+
private:
friend class base::RefCounted<FrameNavigationEntry>;
virtual ~FrameNavigationEntry();
@@ -82,6 +87,8 @@ class CONTENT_EXPORT FrameNavigationEntry
scoped_refptr<SiteInstanceImpl> site_instance_;
GURL url_;
Referrer referrer_;
+ // TODO(creis): Change this to FrameState.
+ PageState page_state_;
DISALLOW_COPY_AND_ASSIGN(FrameNavigationEntry);
};
« no previous file with comments | « no previous file | content/browser/frame_host/frame_navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698