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

Side by Side Diff: Source/core/loader/HistoryItem.h

Issue 1159723003: Don't reuse HistoryItems for multiple navigations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/loader/HistoryItem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class ResourceRequest; 46 class ResourceRequest;
47 47
48 class CORE_EXPORT HistoryItem final : public RefCountedWillBeGarbageCollectedFin alized<HistoryItem> { 48 class CORE_EXPORT HistoryItem final : public RefCountedWillBeGarbageCollectedFin alized<HistoryItem> {
49 public: 49 public:
50 static PassRefPtrWillBeRawPtr<HistoryItem> create() 50 static PassRefPtrWillBeRawPtr<HistoryItem> create()
51 { 51 {
52 return adoptRefWillBeNoop(new HistoryItem); 52 return adoptRefWillBeNoop(new HistoryItem);
53 } 53 }
54 ~HistoryItem(); 54 ~HistoryItem();
55 55
56 // Used when the frame this item represents was navigated to a different
57 // url but a new item wasn't created.
58 void generateNewItemSequenceNumber();
59 void generateNewDocumentSequenceNumber();
60
61 const String& urlString() const; 56 const String& urlString() const;
62 KURL url() const; 57 KURL url() const;
63 58
64 const Referrer& referrer() const; 59 const Referrer& referrer() const;
65 const String& target() const; 60 const String& target() const;
66 61
67 FormData* formData(); 62 FormData* formData();
68 const AtomicString& formContentType() const; 63 const AtomicString& formContentType() const;
69 64
70 const FloatPoint& pinchViewportScrollPoint() const; 65 const FloatPoint& pinchViewportScrollPoint() const;
71 void setPinchViewportScrollPoint(const FloatPoint&); 66 void setPinchViewportScrollPoint(const FloatPoint&);
72 const IntPoint& scrollPoint() const; 67 const IntPoint& scrollPoint() const;
73 void setScrollPoint(const IntPoint&); 68 void setScrollPoint(const IntPoint&);
74 void clearScrollPoint();
75 69
76 float pageScaleFactor() const; 70 float pageScaleFactor() const;
77 void setPageScaleFactor(float); 71 void setPageScaleFactor(float);
78 72
79 Vector<String> getReferencedFilePaths(); 73 Vector<String> getReferencedFilePaths();
80 const Vector<String>& documentState(); 74 const Vector<String>& documentState();
81 void setDocumentState(const Vector<String>&); 75 void setDocumentState(const Vector<String>&);
82 void setDocumentState(DocumentState*); 76 void setDocumentState(DocumentState*);
83 void clearDocumentState(); 77 void clearDocumentState();
84 78
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 134
141 // info used to repost form data 135 // info used to repost form data
142 RefPtr<FormData> m_formData; 136 RefPtr<FormData> m_formData;
143 AtomicString m_formContentType; 137 AtomicString m_formContentType;
144 138
145 }; // class HistoryItem 139 }; // class HistoryItem
146 140
147 } // namespace blink 141 } // namespace blink
148 142
149 #endif // HISTORYITEM_H 143 #endif // HISTORYITEM_H
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/loader/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698