chore: bump chromium to 118.0.5991.0 (main) (#39714)
* chore: bump chromium in DEPS to 118.0.5982.0 * chore: bump chromium in DEPS to 118.0.5983.0 * chore: bump chromium in DEPS to 118.0.5985.0 * chore: bump chromium in DEPS to 118.0.5987.0 * chore: update v8 patches * chore: update chromium patches * chore: update patches * [PEPC] Add new structs to contain permission request data Refs4756727
* Add ThumbnailCapturer interface Refs4812256
* Reland "[ChromeRefresh2023] Update document pip windows for Chrome Refresh" Refs4814275
* chore: bump chromium in DEPS to 118.0.5989.0 * chore: bump chromium in DEPS to 118.0.5991.0 * chore: update patches --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
This commit is contained in:
parent
c96bb9958f
commit
d9ba26273a
61 changed files with 367 additions and 315 deletions
|
@ -61,6 +61,13 @@ class ElectronPermissionManager : public content::PermissionControllerDelegate {
|
|||
using BluetoothPairingHandler =
|
||||
base::RepeatingCallback<void(gin_helper::Dictionary, PairCallback)>;
|
||||
|
||||
void RequestPermissionWithDetails(blink::PermissionType permission,
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
const GURL& requesting_origin,
|
||||
bool user_gesture,
|
||||
base::Value::Dict details,
|
||||
StatusCallback response_callback);
|
||||
|
||||
// Handler to dispatch permission requests in JS.
|
||||
void SetPermissionRequestHandler(const RequestHandler& handler);
|
||||
void SetPermissionCheckHandler(const CheckHandler& handler);
|
||||
|
@ -68,31 +75,6 @@ class ElectronPermissionManager : public content::PermissionControllerDelegate {
|
|||
void SetProtectedUSBHandler(const ProtectedUSBHandler& handler);
|
||||
void SetBluetoothPairingHandler(const BluetoothPairingHandler& handler);
|
||||
|
||||
// content::PermissionControllerDelegate:
|
||||
void RequestPermission(blink::PermissionType permission,
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
const GURL& requesting_origin,
|
||||
bool user_gesture,
|
||||
StatusCallback callback) override;
|
||||
void RequestPermissionWithDetails(blink::PermissionType permission,
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
const GURL& requesting_origin,
|
||||
bool user_gesture,
|
||||
base::Value::Dict details,
|
||||
StatusCallback callback);
|
||||
void RequestPermissions(const std::vector<blink::PermissionType>& permissions,
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
const GURL& requesting_origin,
|
||||
bool user_gesture,
|
||||
StatusesCallback callback) override;
|
||||
|
||||
void RequestPermissionsWithDetails(
|
||||
const std::vector<blink::PermissionType>& permissions,
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
bool user_gesture,
|
||||
base::Value::Dict details,
|
||||
StatusesCallback callback);
|
||||
|
||||
void CheckBluetoothDevicePair(gin_helper::Dictionary details,
|
||||
PairCallback pair_callback) const;
|
||||
|
||||
|
@ -125,6 +107,10 @@ class ElectronPermissionManager : public content::PermissionControllerDelegate {
|
|||
blink::mojom::PermissionStatus status);
|
||||
|
||||
// content::PermissionControllerDelegate:
|
||||
void RequestPermissions(
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
const content::PermissionRequestDescription& request_description,
|
||||
StatusesCallback callback) override;
|
||||
void ResetPermission(blink::PermissionType permission,
|
||||
const GURL& requesting_origin,
|
||||
const GURL& embedding_origin) override;
|
||||
|
@ -133,9 +119,8 @@ class ElectronPermissionManager : public content::PermissionControllerDelegate {
|
|||
const GURL& requesting_origin,
|
||||
const GURL& embedding_origin) override;
|
||||
void RequestPermissionsFromCurrentDocument(
|
||||
const std::vector<blink::PermissionType>& permissions,
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
bool user_gesture,
|
||||
const content::PermissionRequestDescription& request_description,
|
||||
base::OnceCallback<
|
||||
void(const std::vector<blink::mojom::PermissionStatus>&)> callback)
|
||||
override;
|
||||
|
@ -167,6 +152,12 @@ class ElectronPermissionManager : public content::PermissionControllerDelegate {
|
|||
class PendingRequest;
|
||||
using PendingRequestsMap = base::IDMap<std::unique_ptr<PendingRequest>>;
|
||||
|
||||
void RequestPermissionsWithDetails(
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
const content::PermissionRequestDescription& request_description,
|
||||
base::Value::Dict details,
|
||||
StatusesCallback callback);
|
||||
|
||||
RequestHandler request_handler_;
|
||||
CheckHandler check_handler_;
|
||||
DeviceCheckHandler device_permission_handler_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue