diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2016-01-26 06:29:48 -0800 |
---|---|---|
committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2016-01-27 23:25:20 +0000 |
commit | d86feb3afcaacd57e3d661b969db173dea075f96 (patch) | |
tree | e4b58591849936890fc866c5ec848110efa6bd22 /src/webenginewidgets/api/qwebengineprofile.cpp | |
parent | 2d3a5c7a4e78cdbd973416ea8fdaea6e2fb4ddb7 (diff) |
Extend HttpCacheType with NoCache option
Add option to disable cache with passing NULL as cache backend.
It behaves the same way as using HttpCache::set_mode(DISABLE), but
saves some memory without instantiating backend factory.
Change-Id: I1565cc773eda21a6bc73eebe14ab8046252a7755
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp')
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp index c64a883d3..3d423946f 100644 --- a/src/webenginewidgets/api/qwebengineprofile.cpp +++ b/src/webenginewidgets/api/qwebengineprofile.cpp @@ -81,6 +81,7 @@ using QtWebEngineCore::BrowserContextAdapter; \value MemoryHttpCache Use an in-memory cache. This is the only setting possible if \c off-the-record is set or no cache path is available. \value DiskHttpCache Use a disk cache. This is the default. + \value NoCache Disable both in-memory and disk caching. */ /*! |