mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
bef5dd37c4
* Applied formatting * Fixed file encoding + Updated copyright year * Updated License * Fixed more file encoding * Copyright notice now shows the year the file was created
33 lines
755 B
C++
33 lines
755 B
C++
// Copyright © 2012 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include "Stdafx.h"
|
|
#include "include/cef_cookie.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
private class CookieVisitor : public CefCookieVisitor
|
|
{
|
|
private:
|
|
gcroot<ICookieVisitor^> _visitor;
|
|
|
|
public:
|
|
CookieVisitor(ICookieVisitor^ visitor) :
|
|
_visitor(visitor)
|
|
{
|
|
}
|
|
|
|
~CookieVisitor()
|
|
{
|
|
delete _visitor;
|
|
_visitor = nullptr;
|
|
}
|
|
|
|
virtual bool Visit(const CefCookie& cookie, int count, int total, bool& deleteCookie) OVERRIDE;
|
|
|
|
IMPLEMENT_REFCOUNTING(CookieVisitor);
|
|
};
|
|
} |