From 3860d79c0b0d1c623746e40b1d0234674535cc90 Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Wed, 5 Mar 2014 11:06:09 +0100 Subject: Use VisitedLinks component. This allows to resolve visited links in the render process. The newly introduced API at the Core layer should allow exposing this functionality to our widgets and Qt quick API layers. Change-Id: I256376afcfe79014dc274e2dddbac1986a884a93 Reviewed-by: Allan Sandfeld Jensen --- src/core/web_engine_context.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/web_engine_context.cpp') diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 82a6872a0..709000c10 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -77,6 +77,7 @@ #include "type_conversion.h" #include "surface_factory_qt.h" #include "web_engine_library_info.h" +#include "web_engine_visited_links_manager.h" #include #include #include @@ -109,6 +110,11 @@ scoped_refptr WebEngineContext::current() return sContext; } +WebEngineVisitedLinksManager *WebEngineContext::visitedLinksManager() +{ + return m_visitedLinksManager.get(); +} + #ifndef CHROMIUM_VERSION #error Chromium version should be defined at gyp-time. Something must have gone wrong #define CHROMIUM_VERSION // This is solely to keep Qt Creator happy. @@ -204,4 +210,7 @@ WebEngineContext::WebEngineContext() // thread to avoid a thread check assertion in its constructor when it // first gets referenced on the IO thread. MediaCaptureDevicesDispatcher::GetInstance(); + + // Ensure we have a VisitedLinksMaster instance up and running + m_visitedLinksManager.reset(new WebEngineVisitedLinksManager); } -- cgit v1.2.3