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

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

Issue 2624193004: Submit a sample of notification images to Safe Browsing (Closed)
Patch Set: Created 3 years, 11 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 PlatformNotificationServiceImpl(); 112 PlatformNotificationServiceImpl();
113 ~PlatformNotificationServiceImpl() override; 113 ~PlatformNotificationServiceImpl() override;
114 114
115 // Persistent notifications fired through the delegate do not care about the 115 // Persistent notifications fired through the delegate do not care about the
116 // lifetime of the Service Worker responsible for executing the event. 116 // lifetime of the Service Worker responsible for executing the event.
117 void OnClickEventDispatchComplete( 117 void OnClickEventDispatchComplete(
118 content::PersistentNotificationStatus status); 118 content::PersistentNotificationStatus status);
119 void OnCloseEventDispatchComplete( 119 void OnCloseEventDispatchComplete(
120 content::PersistentNotificationStatus status); 120 content::PersistentNotificationStatus status);
121 121
122 // Creates a new Web Notification-based Notification object. 122 // Creates a new Web Notification-based Notification object. Should only be
123 // called when the notification is first shown.
123 // TODO(peter): |delegate| can be a scoped_refptr, but properly passing this 124 // TODO(peter): |delegate| can be a scoped_refptr, but properly passing this
124 // through requires changing a whole lot of Notification constructor calls. 125 // through requires changing a whole lot of Notification constructor calls.
125 Notification CreateNotificationFromData( 126 Notification CreateNotificationFromData(
126 Profile* profile, 127 Profile* profile,
127 const GURL& service_worker_scope, 128 const GURL& service_worker_scope,
128 const GURL& origin, 129 const GURL& origin,
129 const content::PlatformNotificationData& notification_data, 130 const content::PlatformNotificationData& notification_data,
130 const content::NotificationResources& notification_resources, 131 const content::NotificationResources& notification_resources,
131 NotificationDelegate* delegate) const; 132 NotificationDelegate* delegate) const;
132 133
(...skipping 24 matching lines...) Expand all
157 // programmatically to avoid dispatching close events for them. 158 // programmatically to avoid dispatching close events for them.
158 std::unordered_set<std::string> closed_notifications_; 159 std::unordered_set<std::string> closed_notifications_;
159 160
160 // Only set and used for tests, owned by the caller in that case. 161 // Only set and used for tests, owned by the caller in that case.
161 NotificationDisplayService* test_display_service_; 162 NotificationDisplayService* test_display_service_;
162 163
163 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationServiceImpl); 164 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationServiceImpl);
164 }; 165 };
165 166
166 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ 167 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698