| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ |
| 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 base::Closure* cancel_callback) override; | 48 base::Closure* cancel_callback) override; |
| 49 void DisplayPersistentNotification( | 49 void DisplayPersistentNotification( |
| 50 BrowserContext* browser_context, | 50 BrowserContext* browser_context, |
| 51 int64_t persistent_notification_id, | 51 int64_t persistent_notification_id, |
| 52 const GURL& origin, | 52 const GURL& origin, |
| 53 const SkBitmap& icon, | 53 const SkBitmap& icon, |
| 54 const PlatformNotificationData& notification_data) override; | 54 const PlatformNotificationData& notification_data) override; |
| 55 void ClosePersistentNotification( | 55 void ClosePersistentNotification( |
| 56 BrowserContext* browser_context, | 56 BrowserContext* browser_context, |
| 57 int64_t persistent_notification_id) override; | 57 int64_t persistent_notification_id) override; |
| 58 bool GetDisplayedPersistentNotifications( |
| 59 BrowserContext* browser_context, |
| 60 std::set<std::string>* displayed_notifications) override; |
| 58 | 61 |
| 59 private: | 62 private: |
| 60 // Structure to represent the information of a persistent notification. | 63 // Structure to represent the information of a persistent notification. |
| 61 struct PersistentNotification { | 64 struct PersistentNotification { |
| 62 BrowserContext* browser_context = nullptr; | 65 BrowserContext* browser_context = nullptr; |
| 63 GURL origin; | 66 GURL origin; |
| 64 int64_t persistent_id = 0; | 67 int64_t persistent_id = 0; |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 // Closes the notification titled |title|. Must be called on the UI thread. | 70 // Closes the notification titled |title|. Must be called on the UI thread. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 83 std::map<std::string, std::string> replacements_; | 86 std::map<std::string, std::string> replacements_; |
| 84 | 87 |
| 85 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; | 88 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; |
| 86 | 89 |
| 87 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); | 90 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); |
| 88 }; | 91 }; |
| 89 | 92 |
| 90 } // content | 93 } // content |
| 91 | 94 |
| 92 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ | 95 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |