Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 8fafdaeb59cce21eb0bde46d2e6f87fbeb6b1e2d..a538990590638b127b653f349d4c57a039463b38 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -451,6 +451,7 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context) |
virtual_keyboard_requested_(false), |
page_scale_factor_is_one_(true), |
mouse_lock_widget_(nullptr), |
+ is_overlay_content_(false), |
loading_weak_factory_(this), |
weak_factory_(this) { |
frame_tree_.SetFrameRemoveListener( |
@@ -3813,6 +3814,10 @@ void WebContentsImpl::OnCreditCardInputShownOnHttp() { |
controller_.ssl_manager()->DidShowCreditCardInputOnHttp(); |
} |
+void WebContentsImpl::SetIsOverlayContent(bool is_overlay_content) { |
+ is_overlay_content_ = is_overlay_content; |
+} |
+ |
void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() { |
for (auto& observer : observers_) |
observer.DidFirstVisuallyNonEmptyPaint(); |
@@ -4145,6 +4150,10 @@ double WebContentsImpl::GetPendingPageZoomLevel() { |
url.scheme(), net::GetHostOrSpecFromURL(url)); |
} |
+bool WebContentsImpl::HideDownloadUI() const { |
+ return is_overlay_content_; |
+} |
+ |
bool WebContentsImpl::IsNeverVisible() { |
if (!delegate_) |
return false; |