#include "content/browser/notifications/notification_database_conversions.h"
#include <stddef.h>
#include <memory>
#include <optional>
#include "base/check.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "content/browser/notifications/notification_database_data.pb.h"
#include "content/browser/notifications/notification_database_resources.pb.h"
#include "content/public/browser/notification_database_data.h"
#include "third_party/blink/public/common/notifications/notification_resources.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/codec/png_codec.h"
namespace content {
namespace {
SkBitmap DeserializeImage(const std::string& image_data) { … }
std::vector<unsigned char> SerializeImage(const SkBitmap& image) { … }
}
bool DeserializeNotificationDatabaseData(const std::string& input,
NotificationDatabaseData* output) { … }
bool SerializeNotificationDatabaseData(const NotificationDatabaseData& input,
std::string* output) { … }
bool DeserializeNotificationDatabaseResources(
const std::string& serialized_resources,
blink::NotificationResources* output) { … }
bool SerializeNotificationDatabaseResources(
const blink::NotificationResources& input,
std::string* serialized_resources) { … }
}