summaryrefslogtreecommitdiffstats
path: root/lib/browser_context_qt.h
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@digia.com>2013-08-07 12:28:50 +0200
committerMichael Bruning <michael.bruning@digia.com>2013-08-08 09:54:48 +0200
commitc931e3a0098c2e428558254f04b743c57f25eca8 (patch)
tree39415484af5e6248da1fe4278f6a1dedc86170b4 /lib/browser_context_qt.h
parentcc5368917662e90156eaeafc5ac7e2803d941160 (diff)
Add a dummy implementation of DownloadManagerDelegate.
Prevents the the web engine from crashing by providing an implementation and generating download Ids for downloads. Change-Id: Iac1e98b74ec1fdc9d913951fbfed4b7ba394170f Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'lib/browser_context_qt.h')
-rw-r--r--lib/browser_context_qt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/browser_context_qt.h b/lib/browser_context_qt.h
index e79632ef3..065fb203f 100644
--- a/lib/browser_context_qt.h
+++ b/lib/browser_context_qt.h
@@ -63,6 +63,7 @@
#include <QString>
#include <QStringBuilder>
+#include "download_manager_delegate_qt.h"
#include "resource_context_qt.h"
#include "url_request_context_getter_qt.h"
@@ -72,6 +73,7 @@ public:
explicit BrowserContextQt()
{
resourceContext.reset(new ResourceContextQt(this));
+ downloadManagerDelegate.reset(new DownloadManagerDelegateQt);
}
virtual ~BrowserContextQt() Q_DECL_OVERRIDE {}
@@ -113,8 +115,7 @@ public:
virtual content::DownloadManagerDelegate* GetDownloadManagerDelegate() Q_DECL_OVERRIDE
{
- QT_NOT_YET_IMPLEMENTED
- return 0;
+ return downloadManagerDelegate.get();
}
virtual content::GeolocationPermissionContext* GetGeolocationPermissionContext() Q_DECL_OVERRIDE
{
@@ -137,6 +138,7 @@ public:
private:
scoped_ptr<content::ResourceContext> resourceContext;
scoped_refptr<net::URLRequestContextGetter> url_request_getter_;
+ scoped_ptr<DownloadManagerDelegateQt> downloadManagerDelegate;
DISALLOW_COPY_AND_ASSIGN(BrowserContextQt);
};