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_UI_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/basictypes.h" |
| 13 |
12 class BalloonCollection; | 14 class BalloonCollection; |
13 class GURL; | 15 class GURL; |
14 class Notification; | 16 class Notification; |
15 class NotificationPrefsManager; | 17 class NotificationPrefsManager; |
16 class PrefService; | 18 class PrefService; |
| 19 class Profile; |
17 | 20 |
18 // This virtual interface is used to manage the UI surfaces for desktop | 21 // This virtual interface is used to manage the UI surfaces for desktop |
19 // notifications. There is one instance per profile. | 22 // notifications. There is one instance per profile. |
20 class NotificationUIManager { | 23 class NotificationUIManager { |
21 public: | 24 public: |
22 virtual ~NotificationUIManager() {} | 25 virtual ~NotificationUIManager() {} |
23 | 26 |
24 // Creates an initialized UI manager with a new balloon collection | 27 // Creates an initialized UI manager with a new balloon collection |
25 // and the listener relationship setup. | 28 // and the listener relationship setup. |
26 // Except for unit tests, this is the way to construct the object. | 29 // Except for unit tests, this is the way to construct the object. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 std::vector<const Notification*>* notifications) {} | 64 std::vector<const Notification*>* notifications) {} |
62 | 65 |
63 protected: | 66 protected: |
64 NotificationUIManager() {} | 67 NotificationUIManager() {} |
65 | 68 |
66 private: | 69 private: |
67 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); | 70 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); |
68 }; | 71 }; |
69 | 72 |
70 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ | 73 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
OLD | NEW |