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

Unified Diff: content/renderer/active_notification_tracker.h

Issue 740543003: Remove the old Web Notification code-path (Chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unittest references Created 6 years, 1 month 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/renderer/BUILD.gn ('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
deleted file mode 100644
index e3f64d16cd6a4239193a6ac170f938211a8c7345..0000000000000000000000000000000000000000
--- a/content/renderer/active_notification_tracker.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_
-#define CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_
-
-#include <map>
-
-#include "base/basictypes.h"
-#include "base/containers/hash_tables.h"
-#include "base/id_map.h"
-#include "content/common/content_export.h"
-#include "third_party/WebKit/public/web/WebNotification.h"
-
-namespace content {
-
-// This class manages the set of active Notification objects in either
-// a render or worker process. This class should be accessed only on
-// the main thread.
-class CONTENT_EXPORT ActiveNotificationTracker {
- public:
- ActiveNotificationTracker();
- ~ActiveNotificationTracker();
-
- // Methods for tracking active notification objects.
- int RegisterNotification(const blink::WebNotification& notification);
- void UnregisterNotification(int id);
- bool GetId(const blink::WebNotification& notification, int& id);
- bool GetNotification(int id, blink::WebNotification* notification);
-
- // Clears out all active notifications. Useful on page navigation.
- void Clear();
-
- private:
- typedef std::map<blink::WebNotification, int> ReverseTable;
-
- // Tracking maps for active notifications.
- IDMap<blink::WebNotification> notification_table_;
- ReverseTable reverse_notification_table_;
-
- DISALLOW_COPY_AND_ASSIGN(ActiveNotificationTracker);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/active_notification_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698