#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/public/browser/web_contents_media_capture_id.h"
#include <string_view>
#include <tuple>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
namespace {
constexpr char kDisableLocalEchoFlag[] = …;
constexpr char kOptionStart = …;
constexpr char kOptionSeparator = …;
bool ExtractTabCaptureTarget(const std::string& device_id_param,
int* render_process_id,
int* main_render_frame_id) { … }
bool ExtractOptions(const std::string& device_id,
bool* disable_local_echo) { … }
}
namespace content {
const char kWebContentsCaptureScheme[] = …;
bool WebContentsMediaCaptureId::operator<(
const WebContentsMediaCaptureId& other) const { … }
bool WebContentsMediaCaptureId::operator==(
const WebContentsMediaCaptureId& other) const { … }
bool WebContentsMediaCaptureId::is_null() const { … }
std::string WebContentsMediaCaptureId::ToString() const { … }
bool WebContentsMediaCaptureId::Parse(const std::string& str,
WebContentsMediaCaptureId* output_id) { … }
}