Cached Page and Frame don't need to be ref-counted.
[WebKit-https.git] / Source / WebCore / history / PageCache.h
index 77baa7f..94dabeb 100644 (file)
@@ -51,6 +51,7 @@ namespace WebCore {
         void add(PassRefPtr<HistoryItem>, Page&); // Prunes if capacity() is exceeded.
         void remove(HistoryItem*);
         CachedPage* get(HistoryItem* item);
         void add(PassRefPtr<HistoryItem>, Page&); // Prunes if capacity() is exceeded.
         void remove(HistoryItem*);
         CachedPage* get(HistoryItem* item);
+        PassOwnPtr<CachedPage> take(HistoryItem*);
 
         int pageCount() const { return m_size; }
         int frameCount() const;
 
         int pageCount() const { return m_size; }
         int frameCount() const;