| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_NOTIFICATION_PROVIDER_H_ | 5 #ifndef CHROME_RENDERER_NOTIFICATION_PROVIDER_H_ |
| 6 #define CHROME_RENDERER_NOTIFICATION_PROVIDER_H_ | 6 #define CHROME_RENDERER_NOTIFICATION_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | |
| 10 | |
| 11 #include "chrome/common/desktop_notifications/active_notification_tracker.h" | 9 #include "chrome/common/desktop_notifications/active_notification_tracker.h" |
| 12 #include "ipc/ipc_channel.h" | 10 #include "ipc/ipc_channel.h" |
| 13 #include "third_party/WebKit/WebKit/chromium/public/WebNotification.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebNotification.h" |
| 14 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPresenter.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPresenter.h" |
| 15 | 13 |
| 16 class RenderView; | 14 class RenderView; |
| 17 namespace WebKit { | 15 namespace WebKit { |
| 18 class WebNotificationPermissionCallback; | 16 class WebNotificationPermissionCallback; |
| 19 } | 17 } |
| 20 | 18 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 RenderView* view_; | 56 RenderView* view_; |
| 59 | 57 |
| 60 // A tracker object which manages the active notifications and the IDs | 58 // A tracker object which manages the active notifications and the IDs |
| 61 // that are used to refer to them over IPC. | 59 // that are used to refer to them over IPC. |
| 62 ActiveNotificationTracker manager_; | 60 ActiveNotificationTracker manager_; |
| 63 | 61 |
| 64 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); | 62 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 #endif // CHROME_RENDERER_NOTIFICATION_PROVIDER_H_ | 65 #endif // CHROME_RENDERER_NOTIFICATION_PROVIDER_H_ |
| OLD | NEW |