| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "content/public/browser/platform_notification_service.h" | 13 #include "content/public/browser/platform_notification_service.h" |
| 14 #include "content/public/common/platform_notification_data.h" | 14 #include "content/public/common/platform_notification_data.h" |
| 15 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" | 15 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onPermission.h" |
| 16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class DesktopNotificationDelegate; | 20 class DesktopNotificationDelegate; |
| 21 struct PlatformNotificationData; | 21 struct PlatformNotificationData; |
| 22 | 22 |
| 23 // Responsible for tracking active notifications and allowed origins for the | 23 // Responsible for tracking active notifications and allowed origins for the |
| 24 // Web Notification API when running layout tests. | 24 // Web Notification API when running layout tests. |
| 25 class LayoutTestNotificationManager : public PlatformNotificationService { | 25 class LayoutTestNotificationManager : public PlatformNotificationService { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 std::map<std::string, std::string> replacements_; | 96 std::map<std::string, std::string> replacements_; |
| 97 | 97 |
| 98 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; | 98 base::WeakPtrFactory<LayoutTestNotificationManager> weak_factory_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); | 100 DISALLOW_COPY_AND_ASSIGN(LayoutTestNotificationManager); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // content | 103 } // content |
| 104 | 104 |
| 105 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ | 105 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |