diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-03-07 17:37:19 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-03-09 22:57:03 +0100 |
commit | ec9fcaac50e971d8e2aa7964c4cb4a834262f204 (patch) | |
tree | cbe79e02e89101b8c70f6445062a43e2207b0609 /src/core | |
parent | 99d77b9f1eed817cb3eae68d9e7224a01d55d656 (diff) |
Remove dead ResourceContextQt code
We no longer needed this transitional code.
Change-Id: I1d0c9a4577a15b29e4275579f27b2d664ddba336
Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/core/login_delegate_qt.cpp | 1 | ||||
-rw-r--r-- | src/core/platform_notification_service_qt.cpp | 1 | ||||
-rw-r--r-- | src/core/profile_io_data_qt.cpp | 11 | ||||
-rw-r--r-- | src/core/profile_io_data_qt.h | 1 | ||||
-rw-r--r-- | src/core/resource_context_qt.cpp | 49 | ||||
-rw-r--r-- | src/core/resource_context_qt.h | 61 |
7 files changed, 2 insertions, 123 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index e74520786..e7a6ea136 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -163,7 +163,6 @@ foreach(arch ${archs}) renderer_host/web_engine_page_host.cpp renderer_host/web_engine_page_host.h request_controller.h resource_bundle_qt.cpp - resource_context_qt.cpp resource_context_qt.h select_file_dialog_factory_qt.cpp select_file_dialog_factory_qt.h touch_handle_drawable_client.h touch_handle_drawable_qt.cpp touch_handle_drawable_qt.h diff --git a/src/core/login_delegate_qt.cpp b/src/core/login_delegate_qt.cpp index c00866e6e..9da82c645 100644 --- a/src/core/login_delegate_qt.cpp +++ b/src/core/login_delegate_qt.cpp @@ -64,7 +64,6 @@ #if BUILDFLAG(ENABLE_EXTENSIONS) #include "extensions/extension_system_qt.h" #endif // BUILDFLAG(ENABLE_EXTENSIONS) -#include "resource_context_qt.h" #include "type_conversion.h" #include "web_contents_view_qt.h" #include "web_engine_context.h" diff --git a/src/core/platform_notification_service_qt.cpp b/src/core/platform_notification_service_qt.cpp index 63569ece1..4763064e3 100644 --- a/src/core/platform_notification_service_qt.cpp +++ b/src/core/platform_notification_service_qt.cpp @@ -50,7 +50,6 @@ #include "profile_adapter_client.h" #include "profile_qt.h" #include "user_notification_controller.h" -#include "resource_context_qt.h" #include "type_conversion.h" #include <QSharedPointer> diff --git a/src/core/profile_io_data_qt.cpp b/src/core/profile_io_data_qt.cpp index 24917fa81..18a859403 100644 --- a/src/core/profile_io_data_qt.cpp +++ b/src/core/profile_io_data_qt.cpp @@ -45,6 +45,7 @@ #include "content/public/browser/browser_thread.h" #include "content/public/browser/browsing_data_remover.h" #include "content/public/browser/network_service_instance.h" +#include "content/public/browser/resource_context.h" #include "content/public/browser/shared_cors_origin_access_list.h" #include "content/public/common/content_features.h" #include "net/ssl/ssl_config_service_defaults.h" @@ -58,7 +59,6 @@ #include "net/cookie_monster_delegate_qt.h" #include "net/system_network_context_manager.h" #include "profile_qt.h" -#include "resource_context_qt.h" #include "type_conversion.h" #include <QDebug> @@ -138,7 +138,7 @@ void ProfileIODataQt::initializeOnUIThread() { m_profileAdapter = m_profile->profileAdapter(); DCHECK_CURRENTLY_ON(content::BrowserThread::UI); - m_resourceContext.reset(new ResourceContextQt(this)); + m_resourceContext.reset(new content::ResourceContext()); m_cookieDelegate = new CookieMonsterDelegateQt(); m_cookieDelegate->setClient(m_profile->profileAdapter()->cookieStore()); m_proxyConfigMonitor.reset(new ProxyConfigMonitor(m_profile->GetPrefs())); @@ -278,11 +278,4 @@ ProfileIODataQt *ProfileIODataQt::FromBrowserContext(content::BrowserContext *br return static_cast<ProfileQt *>(browser_context)->m_profileIOData.get(); } -// static -ProfileIODataQt *ProfileIODataQt::FromResourceContext(content::ResourceContext *resource_context) -{ - Q_ASSERT(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); - return static_cast<ResourceContextQt *>(resource_context)->m_io_data; -} - } // namespace QtWebEngineCore diff --git a/src/core/profile_io_data_qt.h b/src/core/profile_io_data_qt.h index 6bd555dbf..5a0f2241e 100644 --- a/src/core/profile_io_data_qt.h +++ b/src/core/profile_io_data_qt.h @@ -117,7 +117,6 @@ public: #endif std::unique_ptr<net::ClientCertStore> CreateClientCertStore(); static ProfileIODataQt *FromBrowserContext(content::BrowserContext *browser_context); - static ProfileIODataQt *FromResourceContext(content::ResourceContext *resource_context); base::WeakPtr<ProfileIODataQt> getWeakPtrOnIOThread(); diff --git a/src/core/resource_context_qt.cpp b/src/core/resource_context_qt.cpp deleted file mode 100644 index 79c105956..000000000 --- a/src/core/resource_context_qt.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtWebEngine module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "resource_context_qt.h" - -namespace QtWebEngineCore { - -ResourceContextQt::ResourceContextQt(ProfileIODataQt *io_data) - : m_io_data(io_data) -{ -} - -} // namespace QtWebEngineCore diff --git a/src/core/resource_context_qt.h b/src/core/resource_context_qt.h deleted file mode 100644 index efd3d2e7e..000000000 --- a/src/core/resource_context_qt.h +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtWebEngine module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef RESOURCE_CONTEXT_QT_H -#define RESOURCE_CONTEXT_QT_H - -#include "content/public/browser/resource_context.h" - -namespace QtWebEngineCore { - -class ProfileIODataQt; - -class ResourceContextQt : public content::ResourceContext -{ -public: - ResourceContextQt(ProfileIODataQt *io_data); -private: - friend class ProfileIODataQt; - ProfileIODataQt* m_io_data; - DISALLOW_COPY_AND_ASSIGN(ResourceContextQt); -}; - -} // namespace QtWebEngineCore - -#endif // RESOURCE_CONTEXT_QT_H |