Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2394653002: Disable download for overlay panel content (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 3afb1aab039d99d206c9b33af0d666dbd9d6c669..822c6cfac9340065a240969c5c3a9161cedf05c5 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -417,6 +417,7 @@ class CONTENT_EXPORT WebContentsImpl
void StopMediaSession() override;
void OnPasswordInputShownOnHttp() override;
void OnCreditCardInputShownOnHttp() override;
+ void SetIsOverlayContent(bool is_overlay_content) override;
#if defined(OS_ANDROID)
base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
@@ -566,6 +567,7 @@ class CONTENT_EXPORT WebContentsImpl
bool IsVirtualKeyboardRequested() override;
bool IsOverridingUserAgent() override;
bool IsJavaScriptDialogShowing() const override;
+ bool HideDownloadUI() const override;
// NavigatorDelegate ---------------------------------------------------------
@@ -1430,6 +1432,9 @@ class CONTENT_EXPORT WebContentsImpl
std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_;
#endif
+ // Whether this WebContents is for content overlay.
+ bool is_overlay_content_;
+
base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
base::WeakPtrFactory<WebContentsImpl> weak_factory_;
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698