OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 HistoryItem* previousItem() const { return m_previousItem.get(); } | 78 HistoryItem* previousItem() const { return m_previousItem.get(); } |
79 | 79 |
80 HistoryItem* provisionalItem() const { return m_provisionalItem.get(); } | 80 HistoryItem* provisionalItem() const { return m_provisionalItem.get(); } |
81 void setProvisionalItem(HistoryItem*); | 81 void setProvisionalItem(HistoryItem*); |
82 | 82 |
83 void pushState(PassRefPtr<SerializedScriptValue>, const String& title, const
String& url); | 83 void pushState(PassRefPtr<SerializedScriptValue>, const String& title, const
String& url); |
84 void replaceState(PassRefPtr<SerializedScriptValue>, const String& title, co
nst String& url); | 84 void replaceState(PassRefPtr<SerializedScriptValue>, const String& title, co
nst String& url); |
85 | 85 |
86 private: | 86 private: |
87 PassRefPtr<HistoryItem> createItem(bool useOriginal); | 87 void initializeItem(HistoryItem*); |
| 88 PassRefPtr<HistoryItem> createItem(); |
88 PassRefPtr<HistoryItem> createItemTree(Frame* targetFrame, bool clipAtTarget
); | 89 PassRefPtr<HistoryItem> createItemTree(Frame* targetFrame, bool clipAtTarget
); |
89 | 90 |
90 void recursiveGoToItem(HistoryItem*, HistoryItem*, FrameLoadType); | 91 void recursiveGoToItem(HistoryItem*, HistoryItem*, FrameLoadType); |
91 bool currentFramesMatchItem(HistoryItem*) const; | 92 bool currentFramesMatchItem(HistoryItem*) const; |
92 void updateBackForwardListClippedAtTarget(bool doClip); | 93 void updateBackForwardListClippedAtTarget(bool doClip); |
| 94 void updateCurrentItem(); |
93 | 95 |
94 Frame* m_frame; | 96 Frame* m_frame; |
95 | 97 |
96 RefPtr<HistoryItem> m_currentItem; | 98 RefPtr<HistoryItem> m_currentItem; |
97 RefPtr<HistoryItem> m_previousItem; | 99 RefPtr<HistoryItem> m_previousItem; |
98 RefPtr<HistoryItem> m_provisionalItem; | 100 RefPtr<HistoryItem> m_provisionalItem; |
99 | 101 |
100 bool m_frameLoadComplete; | 102 bool m_frameLoadComplete; |
101 }; | 103 }; |
102 | 104 |
103 } // namespace WebCore | 105 } // namespace WebCore |
104 | 106 |
105 #endif // HistoryController_h | 107 #endif // HistoryController_h |
OLD | NEW |