diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-13 12:51:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | d441d6f39bb846989d95bcf5caf387b42414718d (patch) | |
tree | e367e64a75991c554930278175d403c072de6bb8 /Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h | |
parent | 0060b2994c07842f4c59de64b5e3e430525c4b90 (diff) | |
download | qtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz |
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit.
Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h')
-rw-r--r-- | Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h b/Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h index 32538b3d3..f5f8ce1c4 100644 --- a/Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h +++ b/Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Apple Inc. All rights reserved. + * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -30,53 +30,52 @@ #include "GenericCallback.h" #include "ImmutableArray.h" #include "MessageReceiver.h" +#include "WebContextSupplement.h" #include <wtf/PassRefPtr.h> #include <wtf/RefPtr.h> #include <wtf/Vector.h> namespace CoreIPC { class Connection; - class MessageID; } namespace WebKit { -struct SecurityOriginData; -class WebContext; -class WebProcessProxy; class WebSecurityOrigin; +struct SecurityOriginData; typedef GenericCallback<WKArrayRef> ArrayCallback; -class WebApplicationCacheManagerProxy : public APIObject, private CoreIPC::MessageReceiver { +class WebApplicationCacheManagerProxy : public TypedAPIObject<APIObject::TypeApplicationCacheManager>, public WebContextSupplement, private CoreIPC::MessageReceiver { public: - static const Type APIType = TypeApplicationCacheManager; + static const char* supplementName(); static PassRefPtr<WebApplicationCacheManagerProxy> create(WebContext*); virtual ~WebApplicationCacheManagerProxy(); - void invalidate(); - void clearContext() { m_webContext = 0; } - void getApplicationCacheOrigins(PassRefPtr<ArrayCallback>); void deleteEntriesForOrigin(WebSecurityOrigin*); void deleteAllEntries(); - bool shouldTerminate(WebProcessProxy*) const; + using APIObject::ref; + using APIObject::deref; private: explicit WebApplicationCacheManagerProxy(WebContext*); - virtual Type type() const { return APIType; } - void didGetApplicationCacheOrigins(const Vector<SecurityOriginData>&, uint64_t callbackID); + // WebContextSupplement + virtual void contextDestroyed() OVERRIDE; + virtual void processDidClose(WebProcessProxy*) OVERRIDE; + virtual bool shouldTerminate(WebProcessProxy*) const OVERRIDE; + virtual void refWebContextSupplement() OVERRIDE; + virtual void derefWebContextSupplement() OVERRIDE; + // CoreIPC::MessageReceiver - virtual void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&) OVERRIDE; - void didReceiveWebApplicationCacheManagerProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&); + virtual void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&) OVERRIDE; - WebContext* m_webContext; - HashMap<uint64_t, RefPtr<ArrayCallback> > m_arrayCallbacks; + HashMap<uint64_t, RefPtr<ArrayCallback>> m_arrayCallbacks; }; } // namespace WebKit |