summaryrefslogtreecommitdiff
path: root/Source/WebCore/history/BackForwardController.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/history/BackForwardController.h')
-rw-r--r--Source/WebCore/history/BackForwardController.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/WebCore/history/BackForwardController.h b/Source/WebCore/history/BackForwardController.h
index 638774643..60693d788 100644
--- a/Source/WebCore/history/BackForwardController.h
+++ b/Source/WebCore/history/BackForwardController.h
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef BackForwardController_h
-#define BackForwardController_h
+#pragma once
#include <wtf/Noncopyable.h>
#include <wtf/Forward.h>
@@ -39,25 +38,25 @@ class Page;
class BackForwardController {
WTF_MAKE_NONCOPYABLE(BackForwardController); WTF_MAKE_FAST_ALLOCATED;
public:
- BackForwardController(Page&, PassRefPtr<BackForwardClient>);
+ BackForwardController(Page&, Ref<BackForwardClient>&&);
~BackForwardController();
BackForwardClient* client() const { return m_client.get(); }
- bool canGoBackOrForward(int distance) const;
+ WEBCORE_EXPORT bool canGoBackOrForward(int distance) const;
void goBackOrForward(int distance);
- bool goBack();
- bool goForward();
+ WEBCORE_EXPORT bool goBack();
+ WEBCORE_EXPORT bool goForward();
- void addItem(PassRefPtr<HistoryItem>);
+ void addItem(Ref<HistoryItem>&&);
void setCurrentItem(HistoryItem*);
int count() const;
- int backCount() const;
- int forwardCount() const;
+ WEBCORE_EXPORT int backCount() const;
+ WEBCORE_EXPORT int forwardCount() const;
- HistoryItem* itemAtIndex(int);
+ WEBCORE_EXPORT HistoryItem* itemAtIndex(int);
void close();
@@ -71,5 +70,3 @@ private:
};
} // namespace WebCore
-
-#endif // BackForwardController_h