diff options
Diffstat (limited to 'chrome/renderer/renderer_webcookiejar_impl.h')
-rw-r--r-- | chrome/renderer/renderer_webcookiejar_impl.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_webcookiejar_impl.h b/chrome/renderer/renderer_webcookiejar_impl.h new file mode 100644 index 0000000..e4f113a --- /dev/null +++ b/chrome/renderer/renderer_webcookiejar_impl.h @@ -0,0 +1,45 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ +#define CHROME_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ + +#include "ipc/ipc_message.h" +// TODO(darin): WebCookieJar.h is missing a WebString.h include! +#include "third_party/WebKit/WebKit/chromium/public/WebString.h" +#include "third_party/WebKit/WebKit/chromium/public/WebCookieJar.h" + +namespace IPC { +class SyncMessage; +} + +class RendererWebCookieJarImpl : public WebKit::WebCookieJar { + public: + explicit RendererWebCookieJarImpl(IPC::Message::Sender* sender) + : sender_(sender) { + } + + private: + void SendSynchronousMessage(IPC::SyncMessage* message); + + // WebKit::WebCookieJar methods: + virtual void setCookie( + const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies, + const WebKit::WebString& value); + virtual WebKit::WebString cookies( + const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); + virtual WebKit::WebString cookieRequestHeaderFieldValue( + const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); + virtual void rawCookies( + const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies, + WebKit::WebVector<WebKit::WebCookie>& cookies); + virtual void deleteCookie( + const WebKit::WebURL& url, const WebKit::WebString& cookie_name); + virtual bool cookiesEnabled( + const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies); + + IPC::Message::Sender* sender_; +}; + +#endif // CHROME_RENDERER_RENDERER_WEBCOOKIEJAR_IMPL_H_ |