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 CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/notifications/notification_delegate.h" | 12 #include "chrome/browser/notifications/notification_delegate.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class BrowserContext; | 15 class BrowserContext; |
15 class DesktopNotificationDelegate; | 16 class DesktopNotificationDelegate; |
16 } | 17 } |
17 | 18 |
18 // A NotificationObjectProxy stands in for the JavaScript Notification object | 19 // A NotificationObjectProxy stands in for the JavaScript Notification object |
19 // which corresponds to a notification toast on the desktop. It can be signaled | 20 // which corresponds to a notification toast on the desktop. It can be signaled |
(...skipping 22 matching lines...) Expand all Loading... |
42 private: | 43 private: |
43 content::BrowserContext* browser_context_; | 44 content::BrowserContext* browser_context_; |
44 scoped_ptr<content::DesktopNotificationDelegate> delegate_; | 45 scoped_ptr<content::DesktopNotificationDelegate> delegate_; |
45 bool displayed_; | 46 bool displayed_; |
46 std::string id_; | 47 std::string id_; |
47 | 48 |
48 DISALLOW_COPY_AND_ASSIGN(NotificationObjectProxy); | 49 DISALLOW_COPY_AND_ASSIGN(NotificationObjectProxy); |
49 }; | 50 }; |
50 | 51 |
51 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ | 52 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OBJECT_PROXY_H_ |
OLD | NEW |