chromium/content/public/browser/desktop_media_id.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/public/browser/desktop_media_id.h"

#include <stdint.h>

#include <vector>

#include "base/containers/id_map.h"
#include "base/memory/singleton.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "content/browser/media/desktop_media_window_registry.h"

namespace content {

const char kScreenPrefix[] =;
const char kWindowPrefix[] =;

#if defined(USE_AURA) || BUILDFLAG(IS_MAC)
// static
DesktopMediaID DesktopMediaID::RegisterNativeWindow(DesktopMediaID::Type type,
                                                    gfx::NativeWindow window) {}

// static
gfx::NativeWindow DesktopMediaID::GetNativeWindowById(
    const DesktopMediaID& id) {}
#endif

bool DesktopMediaID::operator<(const DesktopMediaID& other) const {}

bool DesktopMediaID::operator==(const DesktopMediaID& other) const {}

bool DesktopMediaID::operator!=(const DesktopMediaID& other) const {}

// static
// Input string should in format:
// - For WebContents:
//   web-contents-media-stream://"render_process_id":"main_render_frame_id",
//   with optional local_echo=false specified as a "query string".
// - For screen: screen:window_id:native_window_id
// - For window: window:window_id:native_window_id
DesktopMediaID DesktopMediaID::Parse(const std::string& str) {}

std::string DesktopMediaID::ToString() const {}

}  // namespace content