|
@@ -1,37 +0,0 @@
|
|
|
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
-From: deepak1556 <[email protected]>
|
|
|
-Date: Fri, 3 Sep 2021 18:28:51 -0700
|
|
|
-Subject: fix: expose DecrementCapturerCount in web_contents_impl
|
|
|
-
|
|
|
-This was made private in https://chromium-review.googlesource.com/c/chromium/src/+/2807829 but
|
|
|
-we invoke it in order to expose contents.decrementCapturerCount([stayHidden, stayAwake])
|
|
|
-to users. We should try to upstream this.
|
|
|
-
|
|
|
-diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
|
|
-index 69f9ffbf4826421491118a0b200d6c71e41f8950..c3b7f6fa146ac335b0d18a749a61600cf8241c8d 100644
|
|
|
---- a/content/browser/web_contents/web_contents_impl.h
|
|
|
-+++ b/content/browser/web_contents/web_contents_impl.h
|
|
|
-@@ -1860,7 +1860,7 @@ class CONTENT_EXPORT WebContentsImpl : public WebContents,
|
|
|
- // IncrementCapturerCount() is destructed.
|
|
|
- void DecrementCapturerCount(bool stay_hidden,
|
|
|
- bool stay_awake,
|
|
|
-- bool is_activity = true);
|
|
|
-+ bool is_activity = true) override;
|
|
|
-
|
|
|
- // Calculates the PageVisibilityState for |visibility|, taking the capturing
|
|
|
- // state into account.
|
|
|
-diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
|
|
|
-index 44d75c043805f9bfb4b08741fc652aafc6c50740..41c15ba67ad66245fdac2ada8e9f0de755fe01be 100644
|
|
|
---- a/content/public/browser/web_contents.h
|
|
|
-+++ b/content/public/browser/web_contents.h
|
|
|
-@@ -702,6 +702,10 @@ class WebContents : public PageNavigator,
|
|
|
- bool stay_awake,
|
|
|
- bool is_activity = true) = 0;
|
|
|
-
|
|
|
-+ virtual void DecrementCapturerCount(bool stay_hidden,
|
|
|
-+ bool stay_awake,
|
|
|
-+ bool is_activity = true) = 0;
|
|
|
-+
|
|
|
- // Getter for the capture handle, which allows a captured application to
|
|
|
- // opt-in to exposing information to its capturer(s).
|
|
|
- virtual const blink::mojom::CaptureHandleConfig& GetCaptureHandleConfig() = 0;
|