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

Unified Diff: Source/core/page/Page.h

Issue 28983004: Split the frame tree logic out of HistoryItem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | « Source/core/loader/NavigationScheduler.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.h
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h
index 0f0781c0b7c9c652643d53ae65b5ef7830197196..f9733f9ac5166527d8d24cc9e600c8a1494a8c6a 100644
--- a/Source/core/page/Page.h
+++ b/Source/core/page/Page.h
@@ -52,6 +52,7 @@ class FocusController;
class Frame;
class FrameSelection;
class HaltablePlugin;
+class HistoryController;
class HistoryItem;
class InspectorClient;
class InspectorController;
@@ -115,6 +116,8 @@ public:
EditorClient& editorClient() const { return *m_editorClient; }
SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClient; }
+ HistoryController* history() const { return m_history.get(); }
+
void setMainFrame(PassRefPtr<Frame>);
Frame* mainFrame() const { return m_mainFrame.get(); }
@@ -123,9 +126,6 @@ public:
bool openedByDOM() const;
void setOpenedByDOM();
- // DEPRECATED. Use backForward() instead of the following function.
- void goToItem(HistoryItem*);
-
enum PageGroupType { PrivatePageGroup, SharedPageGroup };
void setGroupType(PageGroupType);
void clearPageGroup();
@@ -251,6 +251,7 @@ private:
const OwnPtr<PointerLockController> m_pointerLockController;
RefPtr<ScrollingCoordinator> m_scrollingCoordinator;
+ const OwnPtr<HistoryController> m_history;
const OwnPtr<Settings> m_settings;
const OwnPtr<ProgressTracker> m_progress;
« no previous file with comments | « Source/core/loader/NavigationScheduler.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698