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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 2353063005: Refactor ContentViewClient (1/6) (Closed)
Patch Set: cast to activity Created 4 years, 3 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/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index c17ff83c8104dbf0de3bc343a81c89ba7cdbf802..b6e34e4ab1390b7ebc6a746c2364da39a4cb0088 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -26,6 +26,10 @@
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/native_widget_types.h"
+#if defined(OS_ANDROID)
+#include "base/android/scoped_java_ref.h"
+#endif
+
class GURL;
namespace base {
@@ -469,6 +473,13 @@ class CONTENT_EXPORT WebContentsDelegate {
virtual void RequestMediaDecodePermission(
WebContents* web_contents,
const base::Callback<void(bool)>& callback);
+
+ // Creates a view embedding the video view.
+ virtual base::android::ScopedJavaLocalRef<jobject>
+ GetContentVideoViewEmbedder();
+
+ // Returns true if the given media should be blocked to load.
+ virtual bool ShouldBlockMediaRequest(const GURL& url);
#endif
// Requests permission to access the PPAPI broker. The delegate should return

Powered by Google App Engine
This is Rietveld 408576698