mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 74.0.3706.0 (#632463)
This commit is contained in:
@@ -92,7 +92,7 @@ void CefCookieStoreProxy::GetCookieListWithOptionsAsync(
|
||||
cookie_store->GetCookieListWithOptionsAsync(url, options,
|
||||
std::move(callback));
|
||||
} else if (!callback.is_null()) {
|
||||
std::move(callback).Run(net::CookieList());
|
||||
std::move(callback).Run(net::CookieList(), net::CookieStatusList());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,18 +101,7 @@ void CefCookieStoreProxy::GetAllCookiesAsync(GetCookieListCallback callback) {
|
||||
if (cookie_store) {
|
||||
cookie_store->GetAllCookiesAsync(std::move(callback));
|
||||
} else if (!callback.is_null()) {
|
||||
std::move(callback).Run(net::CookieList());
|
||||
}
|
||||
}
|
||||
|
||||
void CefCookieStoreProxy::DeleteCookieAsync(const GURL& url,
|
||||
const std::string& cookie_name,
|
||||
base::OnceClosure callback) {
|
||||
net::CookieStore* cookie_store = GetCookieStore();
|
||||
if (cookie_store) {
|
||||
cookie_store->DeleteCookieAsync(url, cookie_name, std::move(callback));
|
||||
} else if (!callback.is_null()) {
|
||||
std::move(callback).Run();
|
||||
std::move(callback).Run(net::CookieList(), net::CookieStatusList());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -30,9 +30,6 @@ class CefCookieStoreProxy : public net::CookieStore {
|
||||
const net::CookieOptions& options,
|
||||
GetCookieListCallback callback) override;
|
||||
void GetAllCookiesAsync(GetCookieListCallback callback) override;
|
||||
void DeleteCookieAsync(const GURL& url,
|
||||
const std::string& cookie_name,
|
||||
base::OnceClosure callback) override;
|
||||
void DeleteCanonicalCookieAsync(const net::CanonicalCookie& cookie,
|
||||
DeleteCallback callback) override;
|
||||
void DeleteAllCreatedInTimeRangeAsync(
|
||||
|
@@ -14,6 +14,7 @@
|
||||
#include "libcef/common/request_impl.h"
|
||||
#include "libcef/common/response_impl.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/strings/string_util.h"
|
||||
#include "net/base/io_buffer.h"
|
||||
@@ -448,7 +449,8 @@ void CefResourceRequestJob::DoLoadCookies() {
|
||||
}
|
||||
|
||||
void CefResourceRequestJob::CheckCookiePolicyAndLoad(
|
||||
const net::CookieList& cookie_list) {
|
||||
const net::CookieList& cookie_list,
|
||||
const net::CookieStatusList& excluded_list) {
|
||||
bool can_get_cookies = !cookie_list.empty() && CanGetCookies(cookie_list);
|
||||
if (can_get_cookies) {
|
||||
net::CookieList::const_iterator it = cookie_list.begin();
|
||||
@@ -469,7 +471,8 @@ void CefResourceRequestJob::CheckCookiePolicyAndLoad(
|
||||
}
|
||||
|
||||
void CefResourceRequestJob::OnCookiesLoaded(
|
||||
const net::CookieList& cookie_list) {
|
||||
const net::CookieList& cookie_list,
|
||||
const net::CookieStatusList& excluded_list) {
|
||||
if (!cookie_list.empty()) {
|
||||
const std::string& cookie_line =
|
||||
net::CanonicalCookie::BuildCookieLine(cookie_list);
|
||||
|
@@ -50,8 +50,10 @@ class CefResourceRequestJob : public net::URLRequestJob {
|
||||
// Used for sending cookies with the request.
|
||||
void AddCookieHeaderAndStart();
|
||||
void DoLoadCookies();
|
||||
void CheckCookiePolicyAndLoad(const net::CookieList& cookie_list);
|
||||
void OnCookiesLoaded(const net::CookieList& cookie_list);
|
||||
void CheckCookiePolicyAndLoad(const net::CookieList& cookie_list,
|
||||
const net::CookieStatusList& excluded_list);
|
||||
void OnCookiesLoaded(const net::CookieList& cookie_list,
|
||||
const net::CookieStatusList& excluded_list);
|
||||
void DoStartTransaction();
|
||||
void StartTransaction();
|
||||
|
||||
|
Reference in New Issue
Block a user