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_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 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "chrome/common/desktop_notifications/active_notification_tracker.h" | 10 #include "chrome/common/desktop_notifications/active_notification_tracker.h" |
11 #include "ipc/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
12 #include "webkit/api/public/WebNotification.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebNotification.h" |
13 #include "webkit/api/public/WebNotificationPresenter.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebNotificationPresenter.h" |
14 | 14 |
15 class RenderView; | 15 class RenderView; |
16 namespace WebKit { | 16 namespace WebKit { |
17 class WebNotificationPermissionCallback; | 17 class WebNotificationPermissionCallback; |
18 } | 18 } |
19 | 19 |
20 // NotificationProvider class is owned by the RenderView. Only | 20 // NotificationProvider class is owned by the RenderView. Only |
21 // to be used on the UI thread. | 21 // to be used on the UI thread. |
22 class NotificationProvider : public WebKit::WebNotificationPresenter { | 22 class NotificationProvider : public WebKit::WebNotificationPresenter { |
23 public: | 23 public: |
(...skipping 30 matching lines...) Expand all Loading... |
54 RenderView* view_; | 54 RenderView* view_; |
55 | 55 |
56 // A tracker object which manages the active notifications and the IDs | 56 // A tracker object which manages the active notifications and the IDs |
57 // that are used to refer to them over IPC. | 57 // that are used to refer to them over IPC. |
58 ActiveNotificationTracker manager_; | 58 ActiveNotificationTracker manager_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); | 60 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); |
61 }; | 61 }; |
62 | 62 |
63 #endif // CHROME_RENDERER_NOTIFICATION_PROVIDER_H_ | 63 #endif // CHROME_RENDERER_NOTIFICATION_PROVIDER_H_ |
OLD | NEW |