| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_NOTIFICATION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_NOTIFICATION_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_NOTIFICATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_NOTIFICATION_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 extensions::NotificationType t3, | 46 extensions::NotificationType t3, |
| 47 extensions::NotificationType t4, | 47 extensions::NotificationType t4, |
| 48 extensions::NotificationType t5, | 48 extensions::NotificationType t5, |
| 49 extensions::NotificationType t6) | 49 extensions::NotificationType t6) |
| 50 WARN_UNUSED_RESULT; | 50 WARN_UNUSED_RESULT; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // content::NotificationObserver implementation. | 53 // content::NotificationObserver implementation. |
| 54 virtual void Observe(int type, | 54 virtual void Observe(int type, |
| 55 const content::NotificationSource& source, | 55 const content::NotificationSource& source, |
| 56 const content::NotificationDetails& details) OVERRIDE; | 56 const content::NotificationDetails& details) override; |
| 57 | 57 |
| 58 // Checks then clears notifications for our extensions. | 58 // Checks then clears notifications for our extensions. |
| 59 testing::AssertionResult CheckNotifications( | 59 testing::AssertionResult CheckNotifications( |
| 60 const std::vector<extensions::NotificationType>& types); | 60 const std::vector<extensions::NotificationType>& types); |
| 61 | 61 |
| 62 const std::set<std::string> extension_ids_; | 62 const std::set<std::string> extension_ids_; |
| 63 std::vector<extensions::NotificationType> notifications_; | 63 std::vector<extensions::NotificationType> notifications_; |
| 64 content::NotificationRegistrar registrar_; | 64 content::NotificationRegistrar registrar_; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace extensions | 67 } // namespace extensions |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_NOTIFICATION_OBSERVER_H_ | 69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_NOTIFICATION_OBSERVER_H_ |
| OLD | NEW |