#ifndef EXTENSIONS_COMMON_API_ALARMS_H__
#define EXTENSIONS_COMMON_API_ALARMS_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
namespace extensions {
namespace api {
namespace alarms {
struct Alarm { … };
struct AlarmCreateInfo { … };
namespace Create {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Get {
struct Params { … };
namespace Results {
base::Value::List Create(const Alarm& alarm);
}
}
namespace GetAll {
namespace Results {
base::Value::List Create(const std::vector<Alarm>& alarms);
}
}
namespace Clear {
struct Params { … };
namespace Results {
base::Value::List Create(bool was_cleared);
}
}
namespace ClearAll {
namespace Results {
base::Value::List Create(bool was_cleared);
}
}
namespace OnAlarm {
extern const char kEventName[];
base::Value::List Create(const Alarm& alarm);
}
}
}
}
#endif