summaryrefslogtreecommitdiffstats
path: root/src/core/profile_qt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/profile_qt.h')
-rw-r--r--src/core/profile_qt.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/profile_qt.h b/src/core/profile_qt.h
index b25ea047b..704c5a6e4 100644
--- a/src/core/profile_qt.h
+++ b/src/core/profile_qt.h
@@ -43,6 +43,7 @@
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/resource_context.h"
+#include "extensions/buildflags/buildflags.h"
#include "net/url_request/url_request_context.h"
#include "profile_io_data_qt.h"
#include <QtGlobal>
@@ -53,6 +54,10 @@ QT_END_NAMESPACE
class InMemoryPrefStore;
class PrefService;
+namespace extensions {
+class ExtensionSystemQt;
+}
+
namespace QtWebEngineCore {
class BrowsingDataRemoverDelegateQt;
@@ -67,6 +72,8 @@ public:
virtual ~ProfileQt();
+ base::FilePath GetCachePath() const;
+
// BrowserContext implementation:
base::FilePath GetPath() const override;
bool IsOffTheRecord() const override;
@@ -94,11 +101,18 @@ public:
content::BackgroundFetchDelegate *GetBackgroundFetchDelegate() override;
content::BackgroundSyncController *GetBackgroundSyncController() override;
content::BrowsingDataRemoverDelegate *GetBrowsingDataRemoverDelegate() override;
+ content::ClientHintsControllerDelegate *GetClientHintsControllerDelegate() override;
+ void SetCorsOriginAccessListForOrigin(const url::Origin &source_origin,
+ std::vector<network::mojom::CorsOriginPatternPtr> allow_patterns,
+ std::vector<network::mojom::CorsOriginPatternPtr> block_patterns,
+ base::OnceClosure closure) override;
+ const content::SharedCorsOriginAccessList* GetSharedCorsOriginAccessList() const override;
// Profile implementation:
PrefService *GetPrefs() override;
const PrefService *GetPrefs() const override;
net::URLRequestContextGetter *GetRequestContext() override;
+ void Initialize();
ProfileAdapter *profileAdapter() { return m_profileAdapter; }
@@ -109,6 +123,9 @@ public:
void setSpellCheckEnabled(bool enabled);
bool isSpellCheckEnabled() const;
#endif
+#if BUILDFLAG(ENABLE_EXTENSIONS)
+ extensions::ExtensionSystemQt* GetExtensionSystem();
+#endif // defined(ENABLE_EXTENSIONS)
private:
friend class ContentBrowserClientQt;
@@ -118,9 +135,14 @@ private:
std::unique_ptr<PermissionManagerQt> m_permissionManager;
std::unique_ptr<SSLHostStateDelegateQt> m_sslHostStateDelegate;
std::unique_ptr<PrefService> m_prefService;
+ scoped_refptr<content::SharedCorsOriginAccessList> m_sharedCorsOriginAccessList;
std::unique_ptr<ProfileIODataQt> m_profileIOData;
ProfileAdapter *m_profileAdapter;
friend class ProfileAdapter;
+#if BUILDFLAG(ENABLE_EXTENSIONS)
+ extensions::ExtensionSystemQt *m_extensionSystem;
+#endif //ENABLE_EXTENSIONS
+ friend class BrowserContextAdapter;
DISALLOW_COPY_AND_ASSIGN(ProfileQt);
};