| 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 <string> | 9 #include <string> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 base::Closure* cancel_callback) override; | 60 base::Closure* cancel_callback) override; |
| 61 void DisplayPersistentNotification( | 61 void DisplayPersistentNotification( |
| 62 BrowserContext* browser_context, | 62 BrowserContext* browser_context, |
| 63 const std::string& notification_id, | 63 const std::string& notification_id, |
| 64 const GURL& service_worker_scope, | 64 const GURL& service_worker_scope, |
| 65 const GURL& origin, | 65 const GURL& origin, |
| 66 const PlatformNotificationData& notification_data, | 66 const PlatformNotificationData& notification_data, |
| 67 const NotificationResources& notification_resources) override; | 67 const NotificationResources& notification_resources) override; |
| 68 void ClosePersistentNotification(BrowserContext* browser_context, | 68 void ClosePersistentNotification(BrowserContext* browser_context, |
| 69 const std::string& notification_id) override; | 69 const std::string& notification_id) override; |
| 70 bool GetDisplayedPersistentNotifications( | 70 bool GetDisplayedNotifications( |
| 71 BrowserContext* browser_context, | 71 BrowserContext* browser_context, |
| 72 std::set<std::string>* displayed_notifications) override; | 72 std::set<std::string>* displayed_notifications) override; |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 // Structure to represent the information of a persistent notification. | 75 // Structure to represent the information of a persistent notification. |
| 76 struct PersistentNotification { | 76 struct PersistentNotification { |
| 77 BrowserContext* browser_context = nullptr; | 77 BrowserContext* browser_context = nullptr; |
| 78 GURL origin; | 78 GURL origin; |
| 79 }; | 79 }; |
| 80 | 80 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 98 std::unordered_map<std::string, std::string> notification_id_map_; | 98 std::unordered_map<std::string, std::string> notification_id_map_; |
| 99 | 99 |
| 100 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; | 100 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); | 102 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // content | 105 } // content |
| 106 | 106 |
| 107 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ | 107 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |