summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_context.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2018-04-18 18:48:06 +0200
committerMichal Klocek <michal.klocek@qt.io>2018-05-18 14:11:07 +0000
commit5de729e706abc915f342e8e94fbdc6a493f5a49b (patch)
treeb96a31b48fe7dbeb5602563fe0f86b13e1756bc9 /src/core/web_engine_context.h
parente11d897bd2a87d4d3870fdc4b3c120cd1f15231d (diff)
Minor. Do cosmetics for web_engine_context
Change-Id: I00f174ed23013b9094077fa6de2504c8e870827c Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/web_engine_context.h')
-rw-r--r--src/core/web_engine_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/web_engine_context.h b/src/core/web_engine_context.h
index 63dbe9f23..7e9d546a4 100644
--- a/src/core/web_engine_context.h
+++ b/src/core/web_engine_context.h
@@ -79,6 +79,7 @@ bool usingSoftwareDynamicGL();
class WebEngineContext : public base::RefCounted<WebEngineContext> {
public:
static WebEngineContext *current();
+ static void destroyContextPostRoutine();
BrowserContextAdapter *defaultBrowserContext();
@@ -99,12 +100,14 @@ private:
std::unique_ptr<ContentMainDelegateQt> m_mainDelegate;
std::unique_ptr<content::ContentMainRunner> m_contentRunner;
std::unique_ptr<content::BrowserMainRunner> m_browserRunner;
- QObject* m_globalQObject;
- QScopedPointer<BrowserContextAdapter> m_defaultBrowserContext;
+ std::unique_ptr<QObject> m_globalQObject;
+ std::unique_ptr<BrowserContextAdapter> m_defaultBrowserContext;
std::unique_ptr<DevToolsServerQt> m_devtoolsServer;
#if BUILDFLAG(ENABLE_BASIC_PRINTING)
std::unique_ptr<printing::PrintJobManager> m_printJobManager;
#endif // BUILDFLAG(ENABLE_BASIC_PRINTING)
+ static scoped_refptr<QtWebEngineCore::WebEngineContext> m_handle;
+ static bool m_destroyed;
};
} // namespace