diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/WebProcess/Cookies/WebCookieManager.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebKit2/WebProcess/Cookies/WebCookieManager.h')
-rw-r--r-- | Source/WebKit2/WebProcess/Cookies/WebCookieManager.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/Source/WebKit2/WebProcess/Cookies/WebCookieManager.h b/Source/WebKit2/WebProcess/Cookies/WebCookieManager.h index ec092651c..7ed658f4f 100644 --- a/Source/WebKit2/WebProcess/Cookies/WebCookieManager.h +++ b/Source/WebKit2/WebProcess/Cookies/WebCookieManager.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. + * Copyright (C) 2011, 2013, 2016 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,6 +30,7 @@ #include "MessageReceiver.h" #include "NetworkProcessSupplement.h" #include "WebProcessSupplement.h" +#include <WebCore/SessionID.h> #include <stdint.h> #include <wtf/Forward.h> #include <wtf/Noncopyable.h> @@ -38,6 +39,10 @@ #include "SoupCookiePersistentStorageType.h" #endif +namespace WebCore { +struct Cookie; +} + namespace WebKit { class ChildProcess; @@ -54,24 +59,24 @@ public: void setCookiePersistentStorage(const String& storagePath, uint32_t storageType); #endif + void notifyCookiesDidChange(WebCore::SessionID); + private: // IPC::MessageReceiver - virtual void didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&) override; + void didReceiveMessage(IPC::Connection&, IPC::Decoder&) override; - void getHostnamesWithCookies(uint64_t callbackID); - void deleteCookiesForHostname(const String&); - void deleteAllCookies(); + void getHostnamesWithCookies(WebCore::SessionID, uint64_t callbackID); + void deleteCookiesForHostname(WebCore::SessionID, const String&); + void deleteAllCookies(WebCore::SessionID); + void deleteAllCookiesModifiedSince(WebCore::SessionID, std::chrono::system_clock::time_point); + void addCookie(WebCore::SessionID, const WebCore::Cookie&, const String& hostname); void platformSetHTTPCookieAcceptPolicy(HTTPCookieAcceptPolicy); void getHTTPCookieAcceptPolicy(uint64_t callbackID); HTTPCookieAcceptPolicy platformGetHTTPCookieAcceptPolicy(); - void startObservingCookieChanges(); - void stopObservingCookieChanges(); - - static void cookiesDidChange(); - void dispatchCookiesDidChange(); - + void startObservingCookieChanges(WebCore::SessionID); + void stopObservingCookieChanges(WebCore::SessionID); ChildProcess* m_process; }; |