#include "media/midi/midi_service.h"
#include "base/feature_list.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "media/midi/midi_manager.h"
#include "media/midi/midi_switches.h"
#include "media/midi/task_service.h"
namespace midi {
std::unique_ptr<MidiManager> MidiService::ManagerFactory::Create(
MidiService* service) { … }
base::TimeDelta MidiService::TimestampToTimeDeltaDelay(
base::TimeTicks timestamp) { … }
MidiService::MidiService() : … { … }
MidiService::MidiService(std::unique_ptr<ManagerFactory> factory)
: … { … }
MidiService::~MidiService() { … }
void MidiService::Shutdown() { … }
void MidiService::StartSession(MidiManagerClient* client) { … }
bool MidiService::EndSession(MidiManagerClient* client) { … }
void MidiService::DispatchSendMidiData(MidiManagerClient* client,
uint32_t port_index,
const std::vector<uint8_t>& data,
base::TimeTicks timestamp) { … }
scoped_refptr<base::SingleThreadTaskRunner> MidiService::GetTaskRunner(
size_t runner_id) { … }
}