summaryrefslogtreecommitdiffstats
path: root/src/core/profile_io_data_qt.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2020-04-16 15:41:42 +0200
committerMichal Klocek <michal.klocek@qt.io>2020-04-20 09:45:00 +0200
commit9e56f570e31a0ef18e544bb21dfddebfe43ec2d0 (patch)
tree5f3af76e8120aada7bc472ece9c7f25da149c9d4 /src/core/profile_io_data_qt.cpp
parenta05bb73747620dd8f0294a57ff690a4f4202884e (diff)
Cleanup interceptors in profile
Change-Id: Ibc6d63845601b8189ac38bacc77885327284c81f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/profile_io_data_qt.cpp')
-rw-r--r--src/core/profile_io_data_qt.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/core/profile_io_data_qt.cpp b/src/core/profile_io_data_qt.cpp
index fd073f208..64ad096a6 100644
--- a/src/core/profile_io_data_qt.cpp
+++ b/src/core/profile_io_data_qt.cpp
@@ -155,49 +155,6 @@ void ProfileIODataQt::resetNetworkContext()
}));
}
-void ProfileIODataQt::updateRequestInterceptor()
-{
- Q_ASSERT(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- const std::lock_guard<QRecursiveMutex> lock(m_mutex);
- m_requestInterceptor = m_profileAdapter->requestInterceptor();
- m_hasPageInterceptors = m_profileAdapter->hasPageRequestInterceptor();
- if (m_requestInterceptor)
- m_isInterceptorDeprecated = m_requestInterceptor->property("deprecated").toBool();
- else
- m_isInterceptorDeprecated = false;
- // We in this case do not need to regenerate any Chromium classes.
-}
-
-bool ProfileIODataQt::isInterceptorDeprecated() const
-{
- return m_isInterceptorDeprecated;
-}
-
-QWebEngineUrlRequestInterceptor *ProfileIODataQt::acquireInterceptor()
-{
- Q_ASSERT(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
- m_mutex.lock();
- return m_requestInterceptor;
-}
-
-QWebEngineUrlRequestInterceptor *ProfileIODataQt::requestInterceptor()
-{
- return m_requestInterceptor;
-}
-
-bool ProfileIODataQt::hasPageInterceptors()
-{
- // used in NetworkDelegateQt::OnBeforeURLRequest
- Q_ASSERT(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
- return m_hasPageInterceptors;
-}
-
-void ProfileIODataQt::releaseInterceptor()
-{
- Q_ASSERT(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
- m_mutex.unlock();
-}
-
bool ProfileIODataQt::canGetCookies(const QUrl &firstPartyUrl, const QUrl &url) const
{
return m_cookieDelegate->canGetCookies(firstPartyUrl, url);