d008d217f9
* chore: bump chromium in DEPS to 07463d3cd628b037c11f36022cb4c788db4628e3 * chore: update patches * fix: Don't leak system network context when nw service is disabled https://chromium-review.googlesource.com/c/chromium/src/+/1632494 NetworkService is now deleted by using SequnceLocalStorageSlot on the IO thread when the service is disabled, which expects all associated NetworkContexts on that sequence to be destroyed. * chore: bump chromium in DEPS to 7c16850e7e40990e141f47101b737ec1092175a1 * fix: Destroy all network contexts before primary network context * Simplify out-of-process service registration https://chromium-review.googlesource.com/c/chromium/src/+/1615882 * [ThreadPool] Rename base::ThreadPool to base::ThreadPoolInstance https://chromium-review.googlesource.com/c/chromium/src/+/1634851 * chore: update patches * fix: -Winconsistent-missing-override warnings * chore: bump chromium in DEPS to 93ebfaccc12715df1d5426797998eed0932f7ae1 * Change CreateBrowserMainParts to return unique_ptrs https://chromium-review.googlesource.com/c/chromium/src/+/1632532 * chore: update patches * chore: bump chromium in DEPS to e656555ffb87bdd05e248d0a3ef9dd9d3433e17b * chore: bump chromium in DEPS to 111e7a8d2e3ae9d70e535009d6afb066ac906063 * chore: bump chromium in DEPS to 9b6b84670d32a7aff41ce73adc0eeee67d364989 * chore: update patches * chore: remove ShouldInterceptResourceAsStream as it is removed upstream Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1639597 * chore: remove ResourceDispatcherHostCreated as it is removed upstream Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1610892 * chore: CreateWithStrongBinding --> CreateWithSelfOwnedReceiver Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1636722 * chore: rename all blink media enums Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1639237 * chore: add accidentally removed patch content back
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE-CHROMIUM file.
|
|
|
|
#ifndef ATOM_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
|
|
#define ATOM_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
|
|
|
|
#include "content/public/browser/web_contents_delegate.h"
|
|
#include "third_party/blink/public/common/mediastream/media_stream_request.h"
|
|
|
|
namespace atom {
|
|
|
|
class MediaStreamDevicesController {
|
|
public:
|
|
MediaStreamDevicesController(const content::MediaStreamRequest& request,
|
|
content::MediaResponseCallback callback);
|
|
|
|
virtual ~MediaStreamDevicesController();
|
|
|
|
// Accept or deny the request based on the default policy.
|
|
bool TakeAction();
|
|
|
|
// Explicitly accept or deny the request.
|
|
void Accept();
|
|
void Deny(blink::mojom::MediaStreamRequestResult result);
|
|
|
|
private:
|
|
// Handle the request of desktop or tab screen cast.
|
|
void HandleUserMediaRequest();
|
|
|
|
// The original request for access to devices.
|
|
const content::MediaStreamRequest request_;
|
|
|
|
// The callback that needs to be Run to notify WebRTC of whether access to
|
|
// audio/video devices was granted or not.
|
|
content::MediaResponseCallback callback_;
|
|
|
|
bool microphone_requested_;
|
|
bool webcam_requested_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController);
|
|
};
|
|
|
|
} // namespace atom
|
|
|
|
#endif // ATOM_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
|