Add Google SafeSearch support with NetworkService (see issue #1917)

This commit is contained in:
Marshall Greenblatt
2019-09-25 16:59:51 +03:00
parent 729b3f0a8f
commit bc5cbcf39b
9 changed files with 156 additions and 16 deletions

View File

@@ -5,10 +5,12 @@
#include "libcef/renderer/url_loader_throttle_provider_impl.h"
#include "libcef/common/extensions/extensions_util.h"
#include "libcef/renderer/render_thread_observer.h"
#include <utility>
#include "base/feature_list.h"
#include "chrome/common/google_url_loader_throttle.h"
#include "content/public/common/content_features.h"
#include "content/public/renderer/render_frame.h"
#include "extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.h"
@@ -70,6 +72,10 @@ CefURLLoaderThrottleProviderImpl::CreateThrottles(
}
}
throttles.push_back(std::make_unique<GoogleURLLoaderThrottle>(
CefRenderThreadObserver::is_incognito_process(),
CefRenderThreadObserver::GetDynamicParams()));
return throttles;
}