#include "media/base/user_input_monitor.h"
#include <utility>
#include "base/atomicops.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
namespace media {
uint32_t ReadKeyPressMonitorCount(
const base::ReadOnlySharedMemoryMapping& readonly_mapping) { … }
void WriteKeyPressMonitorCount(
const base::WritableSharedMemoryMapping& writable_mapping,
uint32_t count) { … }
#ifdef DISABLE_USER_INPUT_MONITOR
std::unique_ptr<UserInputMonitor> UserInputMonitor::Create(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
return nullptr;
}
#endif
UserInputMonitor::UserInputMonitor() = default;
UserInputMonitor::~UserInputMonitor() = default;
UserInputMonitorBase::UserInputMonitorBase() { … }
UserInputMonitorBase::~UserInputMonitorBase() { … }
void UserInputMonitorBase::EnableKeyPressMonitoring() { … }
base::ReadOnlySharedMemoryRegion
UserInputMonitorBase::EnableKeyPressMonitoringWithMapping() { … }
void UserInputMonitorBase::DisableKeyPressMonitoring() { … }
}