summaryrefslogtreecommitdiffstats
path: root/src/core/url_request_context_getter_qt.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-02-20 12:30:20 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-02-20 17:31:44 +0000
commit88ca68c1b3ceff005f6a3a33fc8fc0d551c53a70 (patch)
treef9f69f684c4cb9dd1c24313acec78cd23c3d0724 /src/core/url_request_context_getter_qt.h
parent61dec11a8bc36d37ed36acc6ad897653735d4564 (diff)
Synchronize with QAtomic instead of volatile
Replaces the three volatile bool with two atomic ints and an atomic pointer. Change-Id: Iad41aef4952bbf7de77523ffd729bd00ace68ee9 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/url_request_context_getter_qt.h')
-rw-r--r--src/core/url_request_context_getter_qt.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/url_request_context_getter_qt.h b/src/core/url_request_context_getter_qt.h
index 953481e2d..8e8d91596 100644
--- a/src/core/url_request_context_getter_qt.h
+++ b/src/core/url_request_context_getter_qt.h
@@ -49,6 +49,7 @@
#include "net/url_request/url_request_job_factory_impl.h"
#include "qglobal.h"
+#include <qatomic.h>
namespace net {
class MappedHostResolver;
@@ -72,7 +73,7 @@ public:
void updateHttpCache();
private:
- virtual ~URLRequestContextGetterQt() {}
+ virtual ~URLRequestContextGetterQt();
// Called on the IO thread:
void generateStorage();
@@ -82,13 +83,12 @@ private:
void generateJobFactory();
bool m_ignoreCertificateErrors;
- volatile bool m_updateStorageSettings;
- volatile bool m_updateCookieStore;
- volatile bool m_updateHttpCache;
+ QAtomicInt m_updateCookieStore;
+ QAtomicInt m_updateHttpCache;
BrowserContextAdapter *m_browserContext;
content::ProtocolHandlerMap m_protocolHandlers;
- scoped_ptr<net::ProxyConfigService> m_proxyConfigService;
+ QAtomicPointer<net::ProxyConfigService> m_proxyConfigService;
scoped_ptr<net::URLRequestContext> m_urlRequestContext;
scoped_ptr<net::NetworkDelegate> m_networkDelegate;
scoped_ptr<net::URLRequestContextStorage> m_storage;