forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcookie_access_filter.h
More file actions
27 lines (22 loc) · 1016 Bytes
/
cookie_access_filter.h
File metadata and controls
27 lines (22 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2018 CEF Python, see the Authors file.
// All rights reserved. Licensed under BSD 3-clause license.
// Project website: https://github.com/cztomczak/cefpython
#include "common/cefpython_public_api.h"
#include "include/cef_resource_request_handler.h"
class CookieAccessFilter : public CefCookieAccessFilter
{
public:
CookieAccessFilter(){}
virtual ~CookieAccessFilter(){}
virtual bool CanSendCookie(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
const CefCookie& cookie) override;
virtual bool CanSaveCookie(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
CefRefPtr<CefResponse> response,
const CefCookie& cookie) override;
private:
IMPLEMENT_REFCOUNTING(CookieAccessFilter);
};