You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
480 B

#ifndef BROWSINGHISTORY_H
#define BROWSINGHISTORY_H
#include <vector>
#include "URL.h"
// if it's going to have fwd/back then
// please model after https://developer.mozilla.org/en-US/docs/Web/API/History
class BrowsingHistory {
public:
BrowsingHistory();
void addEntry(URL url);
URL const& goForward();
URL const& goBack();
std::vector<URL> const& getHistory() const;
private:
std::vector<URL> history;
unsigned int currentPosition;
};
#endif