diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/efl/DownloadManagerEfl.h')
-rw-r--r-- | Source/WebKit2/UIProcess/efl/DownloadManagerEfl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/WebKit2/UIProcess/efl/DownloadManagerEfl.h b/Source/WebKit2/UIProcess/efl/DownloadManagerEfl.h index 77516428b..0317a9d86 100644 --- a/Source/WebKit2/UIProcess/efl/DownloadManagerEfl.h +++ b/Source/WebKit2/UIProcess/efl/DownloadManagerEfl.h @@ -27,29 +27,29 @@ #define DownloadManagerEfl_h #include "ewk_download_job_private.h" +#include <WebKit2/WKRetainPtr.h> #include <wtf/HashMap.h> #include <wtf/PassOwnPtr.h> #include <wtf/RefPtr.h> -class EwkContext; -class EwkDownloadJob; - namespace WebKit { class DownloadManagerEfl { public: - static PassOwnPtr<DownloadManagerEfl> create(EwkContext* context) + static PassOwnPtr<DownloadManagerEfl> create(WKContextRef context) { return adoptPtr(new DownloadManagerEfl(context)); } - void registerDownload(DownloadProxy*, EwkViewImpl*); + ~DownloadManagerEfl(); + + void registerDownloadJob(WKDownloadRef, EwkView*); private: - explicit DownloadManagerEfl(EwkContext*); + explicit DownloadManagerEfl(WKContextRef); - EwkDownloadJob* downloadJob(uint64_t id) const; - void unregisterDownloadJob(uint64_t id); + EwkDownloadJob* ewkDownloadJob(WKDownloadRef); + void unregisterDownloadJob(WKDownloadRef); static WKStringRef decideDestinationWithSuggestedFilename(WKContextRef, WKDownloadRef, WKStringRef filename, bool* allowOverwrite, const void* clientInfo); static void didReceiveResponse(WKContextRef, WKDownloadRef, WKURLResponseRef, const void* clientInfo); @@ -59,7 +59,7 @@ private: static void didCancel(WKContextRef, WKDownloadRef, const void* clientInfo); static void didFinish(WKContextRef, WKDownloadRef, const void* clientInfo); - EwkContext* m_context; + WKRetainPtr<WKContextRef> m_context; HashMap<uint64_t, RefPtr<EwkDownloadJob> > m_downloadJobs; }; |