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

Side by Side Diff: content/public/browser/platform_notification_service.h

Issue 2534443002: Use notification display service to collect persistent notifications. (Closed)
Patch Set: threading Created 4 years 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 CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const GURL& origin, 71 const GURL& origin,
72 const PlatformNotificationData& notification_data, 72 const PlatformNotificationData& notification_data,
73 const NotificationResources& notification_resources) = 0; 73 const NotificationResources& notification_resources) = 0;
74 74
75 // Closes the persistent notification identified by 75 // Closes the persistent notification identified by
76 // |persistent_notification_id|. This method must be called on the UI thread. 76 // |persistent_notification_id|. This method must be called on the UI thread.
77 virtual void ClosePersistentNotification( 77 virtual void ClosePersistentNotification(
78 BrowserContext* browser_context, 78 BrowserContext* browser_context,
79 const std::string& notification_id) = 0; 79 const std::string& notification_id) = 0;
80 80
81 // Writes the ids of all currently displaying persistent notifications for the 81 // Writes the ids of all currently displaying notifications for the
82 // given |browser_context| to |displayed_notifications|. Returns whether the 82 // given |browser_context| to |displayed_notifications|. Returns whether the
83 // platform is able to provide such a set. 83 // platform is able to provide such a set.
84 virtual bool GetDisplayedPersistentNotifications( 84 virtual bool GetDisplayedNotifications(
85 BrowserContext* browser_context, 85 BrowserContext* browser_context,
86 std::set<std::string>* displayed_notifications) = 0; 86 std::set<std::string>* displayed_notifications) = 0;
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ 91 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698