summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_adapter.h
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2016-01-26 06:29:48 -0800
committerSzabolcs David <davidsz@inf.u-szeged.hu>2016-01-27 23:25:20 +0000
commitd86feb3afcaacd57e3d661b969db173dea075f96 (patch)
treee4b58591849936890fc866c5ec848110efa6bd22 /src/core/browser_context_adapter.h
parent2d3a5c7a4e78cdbd973416ea8fdaea6e2fb4ddb7 (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/core/browser_context_adapter.h')
-rw-r--r--src/core/browser_context_adapter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/browser_context_adapter.h b/src/core/browser_context_adapter.h
index ee913b8cb..4fe8c63ae 100644
--- a/src/core/browser_context_adapter.h
+++ b/src/core/browser_context_adapter.h
@@ -107,7 +107,8 @@ public:
// KEEP IN SYNC with API or add mapping layer
enum HttpCacheType {
MemoryHttpCache = 0,
- DiskHttpCache
+ DiskHttpCache,
+ NoCache
};
enum PersistentCookiesPolicy {