Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: chrome/browser/notifications/platform_notification_service_impl.h

Issue 2906883003: Deprecate per notification type delegates. (Closed)
Patch Set: review Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 blink::mojom::PermissionStatus CheckPermissionOnIOThread( 77 blink::mojom::PermissionStatus CheckPermissionOnIOThread(
78 content::ResourceContext* resource_context, 78 content::ResourceContext* resource_context,
79 const GURL& origin, 79 const GURL& origin,
80 int render_process_id) override; 80 int render_process_id) override;
81 void DisplayNotification( 81 void DisplayNotification(
82 content::BrowserContext* browser_context, 82 content::BrowserContext* browser_context,
83 const std::string& notification_id, 83 const std::string& notification_id,
84 const GURL& origin, 84 const GURL& origin,
85 const content::PlatformNotificationData& notification_data, 85 const content::PlatformNotificationData& notification_data,
86 const content::NotificationResources& notification_resources, 86 const content::NotificationResources& notification_resources,
87 std::unique_ptr<content::DesktopNotificationDelegate> delegate,
88 base::Closure* cancel_callback) override; 87 base::Closure* cancel_callback) override;
89 void DisplayPersistentNotification( 88 void DisplayPersistentNotification(
90 content::BrowserContext* browser_context, 89 content::BrowserContext* browser_context,
91 const std::string& notification_id, 90 const std::string& notification_id,
92 const GURL& service_worker_scope, 91 const GURL& service_worker_scope,
93 const GURL& origin, 92 const GURL& origin,
94 const content::PlatformNotificationData& notification_data, 93 const content::PlatformNotificationData& notification_data,
95 const content::NotificationResources& notification_resources) override; 94 const content::NotificationResources& notification_resources) override;
96 void ClosePersistentNotification(content::BrowserContext* browser_context, 95 void ClosePersistentNotification(content::BrowserContext* browser_context,
97 const std::string& notification_id) override; 96 const std::string& notification_id) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // programmatically to avoid dispatching close events for them. 160 // programmatically to avoid dispatching close events for them.
162 std::unordered_set<std::string> closed_notifications_; 161 std::unordered_set<std::string> closed_notifications_;
163 162
164 // Only set and used for tests, owned by the caller in that case. 163 // Only set and used for tests, owned by the caller in that case.
165 NotificationDisplayService* test_display_service_; 164 NotificationDisplayService* test_display_service_;
166 165
167 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationServiceImpl); 166 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationServiceImpl);
168 }; 167 };
169 168
170 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ 169 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698