Index: chrome/browser/android/tab_android.h |
diff --git a/chrome/browser/android/tab_android.h b/chrome/browser/android/tab_android.h |
index 40390ee71210538220fd735af311cc3ec0e1f311..4d426538db1257d13ae3f82076790b2034c37fbb 100644 |
--- a/chrome/browser/android/tab_android.h |
+++ b/chrome/browser/android/tab_android.h |
@@ -15,6 +15,7 @@ |
#include "base/callback_forward.h" |
#include "base/macros.h" |
#include "base/strings/string16.h" |
+#include "chrome/browser/android/media_in_product_help_manager.h" |
#include "chrome/browser/sync/glue/synced_tab_delegate_android.h" |
#include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" |
#include "components/favicon/core/favicon_driver_observer.h" |
@@ -51,7 +52,8 @@ class PrerenderManager; |
class TabAndroid : public CoreTabHelperDelegate, |
public content::NotificationObserver, |
- public favicon::FaviconDriverObserver { |
+ public favicon::FaviconDriverObserver, |
+ public MediaInProductHelpManagerClient { |
public: |
// A Java counterpart will be generated for this enum. |
// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser |
@@ -135,6 +137,10 @@ class TabAndroid : public CoreTabHelperDelegate, |
bool icon_url_changed, |
const gfx::Image& image) override; |
+ // MediaInProductHelpManagerClient implementation. |
+ void ShowMediaDownloadInProductHelp(const gfx::Rect& rect_in_frame) override; |
+ void DismissMediaDownloadInProductHelp() override; |
+ |
// Returns true if this tab is currently presented in the context of custom |
// tabs. Tabs can be moved between different activities so the returned value |
// might change over the lifetime of the tab. |
@@ -246,6 +252,10 @@ class TabAndroid : public CoreTabHelperDelegate, |
const base::android::JavaParamRef<jobject>& obj, |
jboolean enabled); |
+ void DownloadMediaInProductHelpDismissed( |
+ JNIEnv* env, |
+ const base::android::JavaParamRef<jobject>& obj); |
+ |
bool ShouldEnableEmbeddedMediaExperience() const; |
scoped_refptr<content::DevToolsAgentHost> GetDevToolsAgentHost(); |
@@ -279,6 +289,7 @@ class TabAndroid : public CoreTabHelperDelegate, |
web_contents_delegate_; |
scoped_refptr<content::DevToolsAgentHost> devtools_host_; |
std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; |
+ std::unique_ptr<MediaInProductHelpManager> media_iph_manager_; |
std::string webapp_manifest_scope_; |
bool embedded_media_experience_enabled_; |