Make GetDisplayedNotifications asynchronous.

https://codereview.chromium.org/2749453002
This commit is contained in:
Aleksei Kuzmin 2017-06-17 00:48:59 +03:00
parent bda5e4efcb
commit 7c7300ff82
2 changed files with 4 additions and 5 deletions

View file

@ -109,10 +109,9 @@ void PlatformNotificationService::ClosePersistentNotification(
const std::string& notification_id) { const std::string& notification_id) {
} }
bool PlatformNotificationService::GetDisplayedNotifications( void PlatformNotificationService::GetDisplayedNotifications(
content::BrowserContext* browser_context, content::BrowserContext* browser_context,
std::set<std::string>* displayed_notifications) { const DisplayedNotificationsCallback& callback) {
return false;
} }
} // namespace brightray } // namespace brightray

View file

@ -48,9 +48,9 @@ class PlatformNotificationService
const content::NotificationResources& notification_resources) override; const content::NotificationResources& notification_resources) override;
void ClosePersistentNotification(content::BrowserContext* browser_context, void ClosePersistentNotification(content::BrowserContext* browser_context,
const std::string& notification_id) override; const std::string& notification_id) override;
bool GetDisplayedNotifications( void GetDisplayedNotifications(
content::BrowserContext* browser_context, content::BrowserContext* browser_context,
std::set<std::string>* displayed_notifications) override; const DisplayedNotificationsCallback& callback) override;
private: private:
BrowserClient* browser_client_; BrowserClient* browser_client_;