#include "chrome/browser/extensions/api/desktop_capture/desktop_capture_api.h"
#include "base/command_line.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "net/base/url_util.h"
#include "services/network/public/cpp/is_potentially_trustworthy.h"
namespace extensions {
namespace {
const char kDesktopCaptureApiNoTabIdError[] = …;
const char kDesktopCaptureApiNoUrlError[] = …;
const char kDesktopCaptureApiInvalidOriginError[] = …;
const char kDesktopCaptureApiInvalidTabIdError[] = …;
const char kDesktopCaptureApiTabUrlNotSecure[] = …;
const char kTargetTabRequiredFromServiceWorker[] = …;
}
DesktopCaptureChooseDesktopMediaFunction::
DesktopCaptureChooseDesktopMediaFunction() { … }
DesktopCaptureChooseDesktopMediaFunction::
~DesktopCaptureChooseDesktopMediaFunction() { … }
ExtensionFunction::ResponseAction
DesktopCaptureChooseDesktopMediaFunction::Run() { … }
bool DesktopCaptureChooseDesktopMediaFunction::
ShouldKeepWorkerAliveIndefinitely() { … }
std::string DesktopCaptureChooseDesktopMediaFunction::GetExtensionTargetName()
const { … }
DesktopCaptureCancelChooseDesktopMediaFunction::
DesktopCaptureCancelChooseDesktopMediaFunction() { … }
DesktopCaptureCancelChooseDesktopMediaFunction::
~DesktopCaptureCancelChooseDesktopMediaFunction() { … }
}