2012-03-22 23:08:05 +01:00
|
|
|
// Copyright (c) 2012 the Chromium Embedded Framework authors.
|
|
|
|
// Portions copyright (c) 2010 The Chromium Authors. All rights reserved.
|
2010-03-29 19:53:26 +02:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_WEBCOOKIEJAR_IMPL_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_WEBCOOKIEJAR_IMPL_H_
|
|
|
|
#pragma once
|
2010-03-29 19:53:26 +02:00
|
|
|
|
2013-02-26 00:44:37 +01:00
|
|
|
#include "third_party/WebKit/Source/Platform/chromium/public/WebCookieJar.h"
|
2010-03-29 19:53:26 +02:00
|
|
|
|
2012-03-22 23:08:05 +01:00
|
|
|
namespace net {
|
|
|
|
class CookieStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CefBrowserImpl;
|
|
|
|
|
|
|
|
// Handles cookie requests from the renderer.
|
2010-03-29 19:53:26 +02:00
|
|
|
class BrowserWebCookieJarImpl : public WebKit::WebCookieJar {
|
|
|
|
public:
|
2012-03-22 23:08:05 +01:00
|
|
|
BrowserWebCookieJarImpl();
|
|
|
|
explicit BrowserWebCookieJarImpl(CefBrowserImpl* browser);
|
|
|
|
|
|
|
|
// WebKit::WebCookieJar methods.
|
2010-03-29 19:53:26 +02:00
|
|
|
virtual void setCookie(
|
|
|
|
const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies,
|
|
|
|
const WebKit::WebString& cookie);
|
|
|
|
virtual WebKit::WebString cookies(
|
|
|
|
const WebKit::WebURL& url, const WebKit::WebURL& first_party_for_cookies);
|
2012-03-22 23:08:05 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
// May be NULL for the global implementation.
|
|
|
|
CefBrowserImpl* browser_;
|
2010-03-29 19:53:26 +02:00
|
|
|
};
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_WEBCOOKIEJAR_IMPL_H_
|