summaryrefslogtreecommitdiffstats
path: root/lib/browser_context_qt.h
diff options
context:
space:
mode:
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);
};