summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h')
-rw-r--r--Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h b/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h
index 9615a510b..ffe99cbe1 100644
--- a/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h
+++ b/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h
@@ -26,40 +26,53 @@
#ifndef CustomProtocolManagerProxy_h
#define CustomProtocolManagerProxy_h
-#if ENABLE(CUSTOM_PROTOCOLS)
-
#include "MessageReceiver.h"
-#if PLATFORM(MAC)
+#if PLATFORM(COCOA)
#include <wtf/HashMap.h>
#include <wtf/RetainPtr.h>
OBJC_CLASS WKCustomProtocolLoader;
#endif
+namespace IPC {
+class DataReference;
+}
+
namespace WebCore {
+class ResourceError;
class ResourceRequest;
+class ResourceResponse;
} // namespace WebCore
namespace WebKit {
class ChildProcessProxy;
-class WebContext;
+class WebProcessPool;
class CustomProtocolManagerProxy : public IPC::MessageReceiver {
public:
- explicit CustomProtocolManagerProxy(ChildProcessProxy*, WebContext&);
+ CustomProtocolManagerProxy(ChildProcessProxy*, WebProcessPool&);
+ ~CustomProtocolManagerProxy();
void startLoading(uint64_t customProtocolID, const WebCore::ResourceRequest&);
void stopLoading(uint64_t customProtocolID);
+ void processDidClose();
+
+ void wasRedirectedToRequest(uint64_t customProtocolID, const WebCore::ResourceRequest&, const WebCore::ResourceResponse&);
+ void didReceiveResponse(uint64_t customProtocolID, const WebCore::ResourceResponse&, uint32_t cacheStoragePolicy);
+ void didLoadData(uint64_t customProtocolID, const IPC::DataReference&);
+ void didFailWithError(uint64_t customProtocolID, const WebCore::ResourceError&);
+ void didFinishLoading(uint64_t customProtocolID);
+
private:
// IPC::MessageReceiver
- virtual void didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&) override;
+ void didReceiveMessage(IPC::Connection&, IPC::Decoder&) override;
ChildProcessProxy* m_childProcessProxy;
- WebContext& m_webContext;
+ WebProcessPool& m_processPool;
-#if PLATFORM(MAC)
+#if PLATFORM(COCOA)
typedef HashMap<uint64_t, RetainPtr<WKCustomProtocolLoader>> LoaderMap;
LoaderMap m_loaderMap;
#endif
@@ -67,6 +80,4 @@ private:
} // namespace WebKit
-#endif // ENABLE(CUSTOM_PROTOCOLS)
-
#endif // CustomProtocolManagerProxy_h