mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update PlatformNotificationService
This commit is contained in:
@@ -62,6 +62,7 @@ blink::mojom::PermissionStatus PlatformNotificationService::CheckPermissionOnIOT
|
||||
|
||||
void PlatformNotificationService::DisplayNotification(
|
||||
content::BrowserContext* browser_context,
|
||||
const std::string& notification_id,
|
||||
const GURL& origin,
|
||||
const content::PlatformNotificationData& notification_data,
|
||||
const content::NotificationResources& notification_resources,
|
||||
@@ -85,8 +86,8 @@ void PlatformNotificationService::DisplayNotification(
|
||||
|
||||
void PlatformNotificationService::DisplayPersistentNotification(
|
||||
content::BrowserContext* browser_context,
|
||||
int64_t persistent_notification_id,
|
||||
const GURL& service_worker_origin,
|
||||
const std::string& notification_id,
|
||||
const GURL& service_worker_scope,
|
||||
const GURL& origin,
|
||||
const content::PlatformNotificationData& notification_data,
|
||||
const content::NotificationResources& notification_resources) {
|
||||
@@ -94,7 +95,7 @@ void PlatformNotificationService::DisplayPersistentNotification(
|
||||
|
||||
void PlatformNotificationService::ClosePersistentNotification(
|
||||
content::BrowserContext* browser_context,
|
||||
int64_t persistent_notification_id) {
|
||||
const std::string& notification_id) {
|
||||
}
|
||||
|
||||
bool PlatformNotificationService::GetDisplayedPersistentNotifications(
|
||||
|
||||
@@ -28,7 +28,9 @@ class PlatformNotificationService
|
||||
content::ResourceContext* resource_context,
|
||||
const GURL& origin,
|
||||
int render_process_id) override;
|
||||
void DisplayNotification(content::BrowserContext* browser_context,
|
||||
void DisplayNotification(
|
||||
content::BrowserContext* browser_context,
|
||||
const std::string& notification_id,
|
||||
const GURL& origin,
|
||||
const content::PlatformNotificationData& notification_data,
|
||||
const content::NotificationResources& notification_resources,
|
||||
@@ -36,14 +38,13 @@ class PlatformNotificationService
|
||||
base::Closure* cancel_callback) override;
|
||||
void DisplayPersistentNotification(
|
||||
content::BrowserContext* browser_context,
|
||||
int64_t persistent_notification_id,
|
||||
const GURL& service_worker_origin,
|
||||
const std::string& notification_id,
|
||||
const GURL& service_worker_scope,
|
||||
const GURL& origin,
|
||||
const content::PlatformNotificationData& notification_data,
|
||||
const content::NotificationResources& notification_resources) override;
|
||||
void ClosePersistentNotification(
|
||||
content::BrowserContext* browser_context,
|
||||
int64_t persistent_notification_id) override;
|
||||
void ClosePersistentNotification(content::BrowserContext* browser_context,
|
||||
const std::string& notification_id) override;
|
||||
bool GetDisplayedPersistentNotifications(
|
||||
content::BrowserContext* browser_context,
|
||||
std::set<std::string>* displayed_notifications) override;
|
||||
|
||||
Reference in New Issue
Block a user