mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 9cedf753 (#418732)
- Simplify usage of OnBeforePluginLoad (issue #2015) - Switch crash reporting from crashpad to breakpad on Windows and OS X. Adds a new chrome_elf.dll dependency on Windows (issue #1995) - Remove CefTextfield::GetPlaceholderTextColor() method which is no longer supported by Chromium.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "libcef/browser/ssl_host_state_delegate.h"
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "net/base/hash_value.h"
|
||||
|
||||
using content::SSLHostStateDelegate;
|
||||
@@ -75,8 +76,22 @@ void CefSSLHostStateDelegate::AllowCert(const std::string& host,
|
||||
cert_policy_for_host_[host].Allow(cert, error);
|
||||
}
|
||||
|
||||
void CefSSLHostStateDelegate::Clear() {
|
||||
cert_policy_for_host_.clear();
|
||||
void CefSSLHostStateDelegate::Clear(
|
||||
const base::Callback<bool(const std::string&)>& host_filter) {
|
||||
if (host_filter.is_null()) {
|
||||
cert_policy_for_host_.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto it = cert_policy_for_host_.begin();
|
||||
it != cert_policy_for_host_.end();) {
|
||||
auto next_it = std::next(it);
|
||||
|
||||
if (host_filter.Run(it->first))
|
||||
cert_policy_for_host_.erase(it);
|
||||
|
||||
it = next_it;
|
||||
}
|
||||
}
|
||||
|
||||
SSLHostStateDelegate::CertJudgment CefSSLHostStateDelegate::QueryPolicy(
|
||||
|
Reference in New Issue
Block a user