diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-12-08 15:56:32 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-01-08 16:50:51 +0100 |
commit | 4557ccd9785f53abc11460211c84db3e564b364f (patch) | |
tree | d087bcf820ede65c098469671c8157184e9bc99a /src/core/browser_context_adapter.h | |
parent | 89027eb534aae302ab6f87a3bcfa94e53db02e5d (diff) |
API for controlling tracking of visited links
Also fixes updating the visited links manager when off-the-record
changes or a storage path is set or changed.
Change-Id: Iffa90edde35f2d84146f3ab3b3861ef113e321f3
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/core/browser_context_adapter.h')
-rw-r--r-- | src/core/browser_context_adapter.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/browser_context_adapter.h b/src/core/browser_context_adapter.h index dabd8a11e..8f03f2094 100644 --- a/src/core/browser_context_adapter.h +++ b/src/core/browser_context_adapter.h @@ -90,15 +90,27 @@ public: ForcePersistentCookies }; + enum VisitedLinksPolicy { + DoNotTrackVisitedLinks = 0, + TrackVisitedLinksInMemory, + TrackVisitedLinksOnDisk, + }; + HttpCacheType httpCacheType() const; void setHttpCacheType(BrowserContextAdapter::HttpCacheType); PersistentCookiesPolicy persistentCookiesPolicy() const; void setPersistentCookiesPolicy(BrowserContextAdapter::PersistentCookiesPolicy); + VisitedLinksPolicy visitedLinksPolicy() const; + void setVisitedLinksPolicy(BrowserContextAdapter::VisitedLinksPolicy); + int httpCacheMaxSize() const; void setHttpCacheMaxSize(int maxSize); + bool trackVisitedLinks() const; + bool persistVisitedLinks() const; + private: QString m_name; bool m_offTheRecord; @@ -109,6 +121,7 @@ private: QString m_httpUserAgent; HttpCacheType m_httpCacheType; PersistentCookiesPolicy m_persistentCookiesPolicy; + VisitedLinksPolicy m_visitedLinksPolicy; int m_httpCacheMaxSize; Q_DISABLE_COPY(BrowserContextAdapter) |