blob: 3bd0395413dc4f9212c76e03acb48b9bc79a5d3e [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UPDATES_UPDATE_NOTIFICATION_INFO_H_
#define CHROME_BROWSER_UPDATES_UPDATE_NOTIFICATION_INFO_H_
#include <string>
namespace updates {
// Contains data used to schedule an update notification.
struct UpdateNotificationInfo {
UpdateNotificationInfo();
UpdateNotificationInfo(const UpdateNotificationInfo& other);
bool operator==(const UpdateNotificationInfo& other) const;
~UpdateNotificationInfo();
// The title of the notification.
std::u16string title;
// The body text of the notification.
std::u16string message;
// Update state enum value. Align with |UpdateState| in
// UpdateStatusProvider.java
int state;
// Should show the notification right away.
bool should_show_immediately;
};
} // namespace updates
#endif // CHROME_BROWSER_UPDATES_UPDATE_NOTIFICATION_INFO_H_