OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COMMON_DESKTOP_NOTIFICATIONS_ACTIVE_NOTIFICATION_TRACKER_H_ | 5 #ifndef CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ |
6 #define CHROME_COMMON_DESKTOP_NOTIFICATIONS_ACTIVE_NOTIFICATION_TRACKER_H_ | 6 #define CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotification.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotification.h" |
15 | 15 |
16 namespace WebKit { | 16 namespace WebKit { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 typedef std::map<WebKit::WebNotification, int> ReverseTable; | 48 typedef std::map<WebKit::WebNotification, int> ReverseTable; |
49 | 49 |
50 // Tracking maps for active notifications and permission requests. | 50 // Tracking maps for active notifications and permission requests. |
51 IDMap<WebKit::WebNotification> notification_table_; | 51 IDMap<WebKit::WebNotification> notification_table_; |
52 ReverseTable reverse_notification_table_; | 52 ReverseTable reverse_notification_table_; |
53 IDMap<WebKit::WebNotificationPermissionCallback> callback_table_; | 53 IDMap<WebKit::WebNotificationPermissionCallback> callback_table_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(ActiveNotificationTracker); | 55 DISALLOW_COPY_AND_ASSIGN(ActiveNotificationTracker); |
56 }; | 56 }; |
57 | 57 |
58 #endif // CHROME_COMMON_DESKTOP_NOTIFICATIONS_ACTIVE_NOTIFICATION_TRACKER_H_ | 58 #endif // CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ |
OLD | NEW |