#include "remoting/host/video_memory_utils.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#include "base/memory/writable_shared_memory_region.h"
#endif
namespace remoting {
std::unique_ptr<SharedVideoMemory> SharedVideoMemory::Create(
size_t size,
int id,
base::OnceClosure on_deleted_callback) { … }
SharedVideoMemory::~SharedVideoMemory() { … }
SharedVideoMemory::SharedVideoMemory(base::ReadOnlySharedMemoryRegion region,
base::WritableSharedMemoryMapping mapping,
webrtc::SharedMemory::Handle handle,
int id,
base::OnceClosure on_deleted_callback)
: … { … }
SharedVideoMemoryFactory::SharedVideoMemoryFactory(
SharedMemoryCreatedCallback shared_memory_created_callback,
SharedMemoryReleasedCallback shared_memory_released_callback)
: … { … }
SharedVideoMemoryFactory::~SharedVideoMemoryFactory() = default;
std::unique_ptr<webrtc::SharedMemory>
SharedVideoMemoryFactory::CreateSharedMemory(size_t size) { … }
IpcSharedBufferCore::IpcSharedBufferCore(
int id,
base::ReadOnlySharedMemoryRegion region)
: … { … }
IpcSharedBufferCore::~IpcSharedBufferCore() = default;
IpcSharedBuffer::IpcSharedBuffer(scoped_refptr<IpcSharedBufferCore> core)
: … { … }
IpcSharedBuffer::~IpcSharedBuffer() = default;
}