aboutsummaryrefslogtreecommitdiff
path: root/src/browser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.h')
-rw-r--r--src/browser.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/browser.h b/src/browser.h
index 497050d..1f86327 100644
--- a/src/browser.h
+++ b/src/browser.h
@@ -9,18 +9,18 @@
#ifndef BROWSER_H
#define BROWSER_H
-#include "configuration.h"
#include "singleapplication.h"
-#include "webengine/webengineprofile.h"
+#include <QJsonObject>
#include <QVector>
#include <memory>
-#include "webengine/cookiefilter.h"
-#include "../plugins/interfaces.h"
+class Configuration;
class MainWindow;
class BookmarksWidget;
class DownloadsWidget;
class UrlRequestInterceptor;
+class WebEngineProfile;
+class CookieFilter;
class Browser : public SingleApplication
{
Q_OBJECT
@@ -39,11 +39,13 @@ public:
std::shared_ptr<WebEngineProfile> profile(const QString &storageName);
- const QList<QString> profiles() const {
+ const QList<QString> profiles() const
+ {
return m_profiles.keys();
}
- const QVector<Plugin> plugins() const {
+ const QVector<Plugin> plugins() const
+ {
return m_plugins;
}
@@ -60,8 +62,8 @@ private:
QHash<QString, std::shared_ptr<WebEngineProfile>> m_profiles;
std::shared_ptr<WebEngineProfile> m_defaultProfile;
- UrlRequestInterceptor* m_urlRequestInterceptor = nullptr;
- CookieFilter* m_cookieInterceptor = nullptr;
+ UrlRequestInterceptor *m_urlRequestInterceptor = nullptr;
+ CookieFilter *m_cookieInterceptor = nullptr;
std::shared_ptr<BookmarksWidget> m_bookmarksManager;
std::shared_ptr<DownloadsWidget> m_downloadManager;
};