OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ | 5 #ifndef CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ |
6 #define CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ | 6 #define CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/containers/hash_tables.h" |
11 #include "base/id_map.h" | 12 #include "base/id_map.h" |
12 #include "base/hash_tables.h" | |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.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 { |
17 class WebNotificationPermissionCallback; | 17 class WebNotificationPermissionCallback; |
18 } | 18 } |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 // This class manages the set of active Notification objects in either | 22 // This class manages the set of active Notification objects in either |
(...skipping 30 matching lines...) Expand all Loading... |
53 IDMap<WebKit::WebNotification> notification_table_; | 53 IDMap<WebKit::WebNotification> notification_table_; |
54 ReverseTable reverse_notification_table_; | 54 ReverseTable reverse_notification_table_; |
55 IDMap<WebKit::WebNotificationPermissionCallback> callback_table_; | 55 IDMap<WebKit::WebNotificationPermissionCallback> callback_table_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(ActiveNotificationTracker); | 57 DISALLOW_COPY_AND_ASSIGN(ActiveNotificationTracker); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace content | 60 } // namespace content |
61 | 61 |
62 #endif // CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ | 62 #endif // CONTENT_RENDERER_ACTIVE_NOTIFICATION_TRACKER_H_ |
OLD | NEW |