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

Unified Diff: content/renderer/active_notification_tracker.h

Issue 433433002: Remove code for the old Web Notification permission-path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/desktop_notification_messages.h ('k') | content/renderer/active_notification_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/active_notification_tracker.h
diff --git a/content/renderer/active_notification_tracker.h b/content/renderer/active_notification_tracker.h
index b6305a567549d27edc29e6b667b051ee2423b418..e3f64d16cd6a4239193a6ac170f938211a8c7345 100644
--- a/content/renderer/active_notification_tracker.h
+++ b/content/renderer/active_notification_tracker.h
@@ -13,10 +13,6 @@
#include "content/common/content_export.h"
#include "third_party/WebKit/public/web/WebNotification.h"
-namespace blink {
-class WebNotificationPermissionCallback;
-}
-
namespace content {
// This class manages the set of active Notification objects in either
@@ -33,22 +29,15 @@ class CONTENT_EXPORT ActiveNotificationTracker {
bool GetId(const blink::WebNotification& notification, int& id);
bool GetNotification(int id, blink::WebNotification* notification);
- // Methods for tracking active permission requests.
- int RegisterPermissionRequest(
- blink::WebNotificationPermissionCallback* callback);
- void OnPermissionRequestComplete(int id);
- blink::WebNotificationPermissionCallback* GetCallback(int id);
-
// Clears out all active notifications. Useful on page navigation.
void Clear();
private:
typedef std::map<blink::WebNotification, int> ReverseTable;
- // Tracking maps for active notifications and permission requests.
+ // Tracking maps for active notifications.
IDMap<blink::WebNotification> notification_table_;
ReverseTable reverse_notification_table_;
- IDMap<blink::WebNotificationPermissionCallback> callback_table_;
DISALLOW_COPY_AND_ASSIGN(ActiveNotificationTracker);
};
« no previous file with comments | « content/common/desktop_notification_messages.h ('k') | content/renderer/active_notification_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698