summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineprofile_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile_p.h')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile_p.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile_p.h b/src/webenginewidgets/api/qwebengineprofile_p.h
index 3a08b6b1e..d527f8f13 100644
--- a/src/webenginewidgets/api/qwebengineprofile_p.h
+++ b/src/webenginewidgets/api/qwebengineprofile_p.h
@@ -37,22 +37,37 @@
#ifndef QWEBENGINEPROFILE_P_H
#define QWEBENGINEPROFILE_P_H
+#include "browser_context_adapter_client.h"
+#include "qwebengineprofile.h"
+#include <QMap>
+#include <QPointer>
+
class BrowserContextAdapter;
QT_BEGIN_NAMESPACE
class QWebEngineSettings;
-
-class QWebEngineProfilePrivate {
+class QWebEngineProfilePrivate
+ : public BrowserContextAdapterClient
+{
public:
+ Q_DECLARE_PUBLIC(QWebEngineProfile)
QWebEngineProfilePrivate(BrowserContextAdapter* browserContext, bool ownsContext);
~QWebEngineProfilePrivate();
BrowserContextAdapter *browserContext() const { return m_browserContext; }
+ void cancelDownload(quint32 downloadId);
+ void downloadDestroyed(quint32 downloadId);
+
+ void downloadRequested(DownloadItemInfo &info) Q_DECL_OVERRIDE;
+ void downloadUpdated(const DownloadItemInfo &info) Q_DECL_OVERRIDE;
+
private:
+ QWebEngineProfile *q_ptr;
BrowserContextAdapter *m_browserContext;
QExplicitlySharedDataPointer<BrowserContextAdapter> m_browserContextRef;
+ QMap<quint32, QPointer<QWebEngineDownloadItem> > m_ongoingDownloads;
};
QT_END_NAMESPACE