Prevent auto-PiP if disablePictureInPicture video attribute is set.

This CLs makes sure fullscreen videos don't enter automatically
Picture-in-Picture if the disablePictureInPicture attribute is set on
the video element.

Test page: https://beaufortfrancois.github.io/sandbox/media/disable-pip.html

Bug: 806249
Change-Id: I3621ef58c8f1778d54865eca6cc30a736994d493
Reviewed-on: https://chromium-review.googlesource.com/918421
Commit-Queue: François Beaufort <[email protected]>
Reviewed-by: Mounir Lamouri <[email protected]>
Reviewed-by: Dale Curtis <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Cr-Commit-Position: refs/heads/master@{#539106}
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index abd051f..84a01a83 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -905,6 +905,11 @@
   // |IsFullscreen| must return |true| when this method is called.
   bool HasActiveEffectivelyFullscreenVideo() const;
 
+  // Whether the WebContents effectively fullscreen active player allows
+  // Picture-in-Picture.
+  // |IsFullscreen| must return |true| when this method is called.
+  bool IsPictureInPictureAllowedForFullscreenVideo() const;
+
   // When inner or outer WebContents are present, become the focused
   // WebContentsImpl. This will activate this content's main frame RenderWidget
   // and indirectly all its subframe widgets.  GetFocusedRenderWidgetHost will