| // Copyright 2019 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_NOTIFICATIONS_SCHEDULER_INTERNAL_ICON_ENTRY_H_ |
| #define CHROME_BROWSER_NOTIFICATIONS_SCHEDULER_INTERNAL_ICON_ENTRY_H_ |
| |
| #include <string> |
| #include <utility> |
| |
| namespace notifications { |
| |
| // The database entry that contains a notification icon, deserialized from the |
| // icon protobuffer. |
| // The icon can be a large chunk of memory so should be used in caution. The |
| // format of the data is the same as the format in the protobuffer, and may need |
| // to be converted to bitmap when used by the UI. |
| struct IconEntry { |
| using IconData = std::string; |
| |
| IconEntry(); |
| IconEntry(const IconEntry&) = delete; |
| IconEntry& operator=(const IconEntry&) = delete; |
| IconEntry(IconEntry&& other); |
| |
| // Raw data of the icon. |
| IconData data; |
| }; |
| |
| } // namespace notifications |
| |
| #endif // CHROME_BROWSER_NOTIFICATIONS_SCHEDULER_INTERNAL_ICON_ENTRY_H_ |