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_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Add a notification to our list. This takes ownership of the pointer. | 91 // Add a notification to our list. This takes ownership of the pointer. |
92 void Add(scoped_ptr<notifier::SyncedNotification> notification); | 92 void Add(scoped_ptr<notifier::SyncedNotification> notification); |
93 | 93 |
94 // Display a notification in the notification center (eventually). | 94 // Display a notification in the notification center (eventually). |
95 void Display(notifier::SyncedNotification* notification); | 95 void Display(notifier::SyncedNotification* notification); |
96 | 96 |
97 // Back pointer to the owning profile. | 97 // Back pointer to the owning profile. |
98 Profile* const profile_; | 98 Profile* const profile_; |
99 NotificationUIManager* const notification_manager_; | 99 NotificationUIManager* const notification_manager_; |
100 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 100 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
| 101 std::vector<std::string> enabled_sending_services_; |
101 static bool avoid_bitmap_fetching_for_test_; | 102 static bool avoid_bitmap_fetching_for_test_; |
102 | 103 |
103 // TODO(petewil): Consider whether a map would better suit our data. | 104 // TODO(petewil): Consider whether a map would better suit our data. |
104 // If there are many entries, lookup time may trump locality of reference. | 105 // If there are many entries, lookup time may trump locality of reference. |
105 ScopedVector<notifier::SyncedNotification> notification_data_; | 106 ScopedVector<notifier::SyncedNotification> notification_data_; |
106 | 107 |
107 friend class ChromeNotifierServiceTest; | 108 friend class ChromeNotifierServiceTest; |
108 | 109 |
109 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierService); | 110 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierService); |
110 }; | 111 }; |
111 | 112 |
112 } // namespace notifier | 113 } // namespace notifier |
113 | 114 |
114 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ | 115 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ |
OLD | NEW |