| 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> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "content/public/browser/platform_notification_service.h" | 15 #include "content/public/browser/platform_notification_service.h" |
| 16 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat
us.mojom.h" | 16 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat
us.mojom.h" |
| 17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 18 | 18 |
| 19 namespace base { |
| 20 class NullableString16; |
| 21 } |
| 22 |
| 19 namespace content { | 23 namespace content { |
| 20 | 24 |
| 21 class DesktopNotificationDelegate; | 25 class DesktopNotificationDelegate; |
| 22 struct NotificationResources; | 26 struct NotificationResources; |
| 23 struct PlatformNotificationData; | 27 struct PlatformNotificationData; |
| 24 | 28 |
| 25 // Responsible for tracking active notifications and allowed origins for the | 29 // Responsible for tracking active notifications and allowed origins for the |
| 26 // Web Notification API when running layout tests. | 30 // Web Notification API when running layout tests. |
| 27 class LayoutTestNotificationManager : public PlatformNotificationService { | 31 class LayoutTestNotificationManager : public PlatformNotificationService { |
| 28 public: | 32 public: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 std::unordered_map<std::string, std::string> notification_id_map_; | 102 std::unordered_map<std::string, std::string> notification_id_map_; |
| 99 | 103 |
| 100 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; | 104 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; |
| 101 | 105 |
| 102 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); | 106 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); |
| 103 }; | 107 }; |
| 104 | 108 |
| 105 } // content | 109 } // content |
| 106 | 110 |
| 107 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ | 111 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |