Update PlatformNotificationService

This commit is contained in:
Cheng Zhao 2017-01-23 17:48:16 +09:00
parent ac4ef926e1
commit bf4c413947
2 changed files with 11 additions and 9 deletions

View file

@ -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(

View file

@ -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;