forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcookie_access_filter.cpp
More file actions
24 lines (20 loc) · 1.07 KB
/
cookie_access_filter.cpp
File metadata and controls
24 lines (20 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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 "cookie_access_filter.h"
#include "common/cefpython_public_api.h"
bool CookieAccessFilter::CanSendCookie(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
const CefCookie& cookie) {
REQUIRE_IO_THREAD();
return CookieAccessFilter_CanSendCookie(browser, frame, request, cookie);
}
bool CookieAccessFilter::CanSaveCookie(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
CefRefPtr<CefResponse> response,
const CefCookie& cookie) {
REQUIRE_IO_THREAD();
return CookieAccessFilter_CanSaveCookie(browser, frame, request, response, cookie);
}